Driver: whitespace

Fixup some whitespace/style issues.  NFC.

llvm-svn: 225012
This commit is contained in:
Saleem Abdulrasool 2014-12-30 22:52:06 +00:00
parent aeaa5bf55e
commit 2e46ebe56f
1 changed files with 7 additions and 9 deletions

View File

@ -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);