forked from OSchip/llvm-project
Driver: inline a single caller of a function (NFC)
Inline the addCompilerRT call to the single caller. NFC. llvm-svn: 295620
This commit is contained in:
parent
63801df251
commit
1577023414
|
@ -3246,14 +3246,6 @@ static void CollectArgsForIntegratedAssembler(Compilation &C,
|
|||
}
|
||||
}
|
||||
|
||||
// This adds the static libclang_rt.builtins-arch.a directly to the command line
|
||||
// FIXME: Make sure we can also emit shared objects if they're requested
|
||||
// and available, check for possible errors, etc.
|
||||
static void addClangRT(const ToolChain &TC, const ArgList &Args,
|
||||
ArgStringList &CmdArgs) {
|
||||
CmdArgs.push_back(TC.getCompilerRTArgString(Args, "builtins"));
|
||||
}
|
||||
|
||||
static void addOpenMPRuntime(ArgStringList &CmdArgs, const ToolChain &TC,
|
||||
const ArgList &Args) {
|
||||
if (!Args.hasFlag(options::OPT_fopenmp, options::OPT_fopenmp_EQ,
|
||||
|
@ -10074,7 +10066,7 @@ static void AddRunTimeLibs(const ToolChain &TC, const Driver &D,
|
|||
case llvm::Triple::Win32:
|
||||
case llvm::Triple::Linux:
|
||||
case llvm::Triple::Fuchsia:
|
||||
addClangRT(TC, Args, CmdArgs);
|
||||
CmdArgs.push_back(TC.getCompilerRTArgString(Args, "builtins"));
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue