Skip to content

Commit 014a067

Browse files
committed
[flang-rt] Fix format.
1 parent b2df115 commit 014a067

File tree

6 files changed

+19
-25
lines changed

6 files changed

+19
-25
lines changed

clang/lib/Driver/ToolChains/AVR.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -424,10 +424,10 @@ Tool *AVRToolChain::buildLinker() const {
424424
return new tools::AVR::Linker(getTriple(), *this);
425425
}
426426

427-
std::string
428-
AVRToolChain::getCompilerRT(const llvm::opt::ArgList &Args, StringRef Component,
429-
FileType Type = ToolChain::FT_Static,
430-
bool IsFortran) const {
427+
std::string AVRToolChain::getCompilerRT(const llvm::opt::ArgList &Args,
428+
StringRef Component,
429+
FileType Type = ToolChain::FT_Static,
430+
bool IsFortran) const {
431431
assert(Type == ToolChain::FT_Static && "AVR only supports static libraries");
432432
// Since AVR can never be a host environment, its compiler-rt library files
433433
// should always have ".a" suffix, even on windows.

clang/lib/Driver/ToolChains/Darwin.h

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,9 @@ class LLVM_LIBRARY_VISIBILITY MachO : public ToolChain {
232232
// Return the full path of the compiler-rt library on a non-Darwin MachO
233233
// system. Those are under
234234
// <resourcedir>/lib/darwin/macho_embedded/<...>(.dylib|.a).
235-
std::string
236-
getCompilerRT(const llvm::opt::ArgList &Args, StringRef Component,
237-
FileType Type = ToolChain::FT_Static,
238-
bool IsFortran = false) const override;
235+
std::string getCompilerRT(const llvm::opt::ArgList &Args, StringRef Component,
236+
FileType Type = ToolChain::FT_Static,
237+
bool IsFortran = false) const override;
239238

240239
/// }
241240
/// @name ToolChain Implementation
@@ -413,10 +412,9 @@ class LLVM_LIBRARY_VISIBILITY Darwin : public AppleMachO {
413412

414413
// Return the full path of the compiler-rt library on a Darwin MachO system.
415414
// Those are under <resourcedir>/lib/darwin/<...>(.dylib|.a).
416-
std::string
417-
getCompilerRT(const llvm::opt::ArgList &Args, StringRef Component,
418-
FileType Type = ToolChain::FT_Static,
419-
bool IsFortran = false) const override;
415+
std::string getCompilerRT(const llvm::opt::ArgList &Args, StringRef Component,
416+
FileType Type = ToolChain::FT_Static,
417+
bool IsFortran = false) const override;
420418

421419
protected:
422420
/// }

clang/lib/Driver/ToolChains/MipsLinux.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ void MipsLLVMToolChain::AddCXXStdlibLibArgs(const ArgList &Args,
118118
}
119119

120120
std::string MipsLLVMToolChain::getCompilerRT(const ArgList &Args,
121-
StringRef Component,
122-
FileType Type,
121+
StringRef Component, FileType Type,
123122
bool IsFortran) const {
124123
SmallString<128> Path(getDriver().ResourceDir);
125124
llvm::sys::path::append(Path, SelectedMultilibs.back().osSuffix(), "lib" + LibSuffix,

clang/lib/Driver/ToolChains/MipsLinux.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ class LLVM_LIBRARY_VISIBILITY MipsLLVMToolChain : public Linux {
3737
void AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args,
3838
llvm::opt::ArgStringList &CmdArgs) const override;
3939

40-
std::string
41-
getCompilerRT(const llvm::opt::ArgList &Args, StringRef Component,
42-
FileType Type = ToolChain::FT_Static,
43-
bool IsFortran = false) const override;
40+
std::string getCompilerRT(const llvm::opt::ArgList &Args, StringRef Component,
41+
FileType Type = ToolChain::FT_Static,
42+
bool IsFortran = false) const override;
4443

4544
std::string computeSysRoot() const override;
4645

clang/lib/Driver/ToolChains/OHOS.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,9 @@ class LLVM_LIBRARY_VISIBILITY OHOS : public Generic_ELF {
5656
std::string computeSysRoot() const override;
5757
std::string getDynamicLinker(const llvm::opt::ArgList &Args) const override;
5858

59-
std::string
60-
getCompilerRT(const llvm::opt::ArgList &Args, StringRef Component,
61-
FileType Type = ToolChain::FT_Static,
62-
bool IsFortran = false) const override;
59+
std::string getCompilerRT(const llvm::opt::ArgList &Args, StringRef Component,
60+
FileType Type = ToolChain::FT_Static,
61+
bool IsFortran = false) const override;
6362

6463
const char *getDefaultLinker() const override {
6564
return "ld.lld";

clang/lib/Driver/ToolChains/OpenBSD.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,8 @@ std::string OpenBSD::getCompilerRT(const ArgList &Args, StringRef Component,
380380
return std::string(Path);
381381
}
382382
SmallString<128> P(getDriver().ResourceDir);
383-
std::string CRTBasename =
384-
buildCompilerRTBasename(Args, Component, Type, /*AddArch=*/false,
385-
IsFortran);
383+
std::string CRTBasename = buildCompilerRTBasename(
384+
Args, Component, Type, /*AddArch=*/false, IsFortran);
386385
llvm::sys::path::append(P, "lib", CRTBasename);
387386
// Checks if this is the base system case which uses a different location.
388387
if (getVFS().exists(P))

0 commit comments

Comments
 (0)