diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-12-30 22:52:06 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-12-30 22:52:06 +0000 |
commit | 2e46ebe56f8356d665d24e8ae718eb490a3a2f6e (patch) | |
tree | 3ed69e882ebaf2b73aa7eb49935f84b45a0a69ab | |
parent | aeaa5bf55e34061c4f310288c73491e24a7c1593 (diff) | |
download | llvm-2e46ebe56f8356d665d24e8ae718eb490a3a2f6e.zip llvm-2e46ebe56f8356d665d24e8ae718eb490a3a2f6e.tar.gz llvm-2e46ebe56f8356d665d24e8ae718eb490a3a2f6e.tar.bz2 |
Driver: whitespace
Fixup some whitespace/style issues. NFC.
llvm-svn: 225012
-rw-r--r-- | clang/lib/Driver/Tools.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 25dbc41..d4627bf 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -2103,11 +2103,9 @@ static void CollectArgsForIntegratedAssembler(Compilation &C, // Until ARM libraries are build separately, we have them all in one library static StringRef getArchNameForCompilerRTLib(const ToolChain &TC) { - if (TC.getArch() == llvm::Triple::arm || - TC.getArch() == llvm::Triple::armeb) + if (TC.getArch() == llvm::Triple::arm || TC.getArch() == llvm::Triple::armeb) return "arm"; - else - return TC.getArchName(); + return TC.getArchName(); } static SmallString<128> getCompilerRTLibDir(const ToolChain &TC) { @@ -2115,8 +2113,8 @@ static SmallString<128> getCompilerRTLibDir(const ToolChain &TC) { SmallString<128> Res(TC.getDriver().ResourceDir); const llvm::Triple &Triple = TC.getTriple(); // TC.getOS() yield "freebsd10.0" whereas "freebsd" is expected. - StringRef OSLibName = (Triple.getOS() == llvm::Triple::FreeBSD) ? - "freebsd" : TC.getOS(); + StringRef OSLibName = + (Triple.getOS() == llvm::Triple::FreeBSD) ? "freebsd" : TC.getOS(); llvm::sys::path::append(Res, "lib", OSLibName); return Res; } @@ -2144,8 +2142,8 @@ static void addClangRT(const ToolChain &TC, const ArgList &Args, } } -static void addProfileRT( - const ToolChain &TC, const ArgList &Args, ArgStringList &CmdArgs) { +static void addProfileRT(const ToolChain &TC, const ArgList &Args, + ArgStringList &CmdArgs) { if (!(Args.hasFlag(options::OPT_fprofile_arcs, options::OPT_fno_profile_arcs, false) || Args.hasArg(options::OPT_fprofile_generate) || @@ -7293,7 +7291,7 @@ static std::string getLinuxDynamicLinker(const ArgList &Args, } static void AddRunTimeLibs(const ToolChain &TC, const Driver &D, - ArgStringList &CmdArgs, const ArgList &Args) { + ArgStringList &CmdArgs, const ArgList &Args) { // Make use of compiler-rt if --rtlib option is used ToolChain::RuntimeLibType RLT = TC.GetRuntimeLibType(Args); |