forked from OSchip/llvm-project
[Driver] Don't pass default value to getCompilerRTArgString
Using static library is already a default. Differential Revision: https://reviews.llvm.org/D56043 llvm-svn: 351710
This commit is contained in:
parent
6d58c9e2b2
commit
9c178356e0
|
@ -757,9 +757,9 @@ bool tools::addXRayRuntime(const ToolChain&TC, const ArgList &Args, ArgStringLis
|
|||
|
||||
if (TC.getXRayArgs().needsXRayRt()) {
|
||||
CmdArgs.push_back("-whole-archive");
|
||||
CmdArgs.push_back(TC.getCompilerRTArgString(Args, "xray", false));
|
||||
CmdArgs.push_back(TC.getCompilerRTArgString(Args, "xray"));
|
||||
for (const auto &Mode : TC.getXRayArgs().modeList())
|
||||
CmdArgs.push_back(TC.getCompilerRTArgString(Args, Mode, false));
|
||||
CmdArgs.push_back(TC.getCompilerRTArgString(Args, Mode));
|
||||
CmdArgs.push_back("-no-whole-archive");
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -377,7 +377,7 @@ void visualstudio::Linker::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
if (!Args.hasArg(options::OPT_shared))
|
||||
CmdArgs.push_back(
|
||||
Args.MakeArgString(std::string("-wholearchive:") +
|
||||
TC.getCompilerRTArgString(Args, "fuzzer", false)));
|
||||
TC.getCompilerRTArgString(Args, "fuzzer")));
|
||||
CmdArgs.push_back(Args.MakeArgString("-debug"));
|
||||
// Prevent the linker from padding sections we use for instrumentation
|
||||
// arrays.
|
||||
|
|
|
@ -188,11 +188,11 @@ void openbsd::Linker::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
CmdArgs.push_back("-lm");
|
||||
}
|
||||
if (NeedsSanitizerDeps) {
|
||||
CmdArgs.push_back(ToolChain.getCompilerRTArgString(Args, "builtins", false));
|
||||
CmdArgs.push_back(ToolChain.getCompilerRTArgString(Args, "builtins"));
|
||||
linkSanitizerRuntimeDeps(ToolChain, CmdArgs);
|
||||
}
|
||||
if (NeedsXRayDeps) {
|
||||
CmdArgs.push_back(ToolChain.getCompilerRTArgString(Args, "builtins", false));
|
||||
CmdArgs.push_back(ToolChain.getCompilerRTArgString(Args, "builtins"));
|
||||
linkXRayRuntimeDeps(ToolChain, CmdArgs);
|
||||
}
|
||||
// FIXME: For some reason GCC passes -lgcc before adding
|
||||
|
|
|
@ -100,7 +100,7 @@ void solaris::Linker::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
// __start_SECNAME labels.
|
||||
CmdArgs.push_back("--whole-archive");
|
||||
CmdArgs.push_back(
|
||||
getToolChain().getCompilerRTArgString(Args, "sancov_begin", false));
|
||||
getToolChain().getCompilerRTArgString(Args, "sancov_begin"));
|
||||
CmdArgs.push_back("--no-whole-archive");
|
||||
|
||||
getToolChain().AddFilePathLibArgs(Args, CmdArgs);
|
||||
|
@ -135,7 +135,7 @@ void solaris::Linker::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
// __stop_SECNAME labels.
|
||||
CmdArgs.push_back("--whole-archive");
|
||||
CmdArgs.push_back(
|
||||
getToolChain().getCompilerRTArgString(Args, "sancov_end", false));
|
||||
getToolChain().getCompilerRTArgString(Args, "sancov_end"));
|
||||
CmdArgs.push_back("--no-whole-archive");
|
||||
|
||||
if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
|
||||
|
|
Loading…
Reference in New Issue