Lines Matching refs:ToolChain
40 bool solaris::isLinkerGnuLd(const ToolChain &TC, const ArgList &Args) { in isLinkerGnuLd()
47 static bool getPIE(const ArgList &Args, const ToolChain &TC) { in getPIE()
58 const ToolChain &ToolChain = getToolChain(); in getLinkerPath() local
73 ToolChain.getDriver().Diag(diag::err_drv_invalid_linker_name) in getLinkerPath()
79 return ToolChain.getDefaultLinker(); in getLinkerPath()
87 const auto &ToolChain = static_cast<const Solaris &>(getToolChain()); in ConstructJob() local
88 const Driver &D = ToolChain.getDriver(); in ConstructJob()
89 const llvm::Triple::ArchType Arch = ToolChain.getArch(); in ConstructJob()
90 const bool IsPIE = getPIE(Args, ToolChain); in ConstructJob()
91 const bool LinkerIsGnuLd = isLinkerGnuLd(ToolChain, Args); in ConstructJob()
167 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crt1.o"))); in ConstructJob()
169 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crti.o"))); in ConstructJob()
184 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(values_X))); in ConstructJob()
190 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(values_xpg))); in ConstructJob()
197 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtbegin))); in ConstructJob()
199 ToolChain.addFastMathRuntimeIfAvailable(Args, CmdArgs); in ConstructJob()
202 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob()
206 bool NeedsSanitizerDeps = addSanitizerRuntimes(ToolChain, Args, CmdArgs); in ConstructJob()
207 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); in ConstructJob()
214 addOpenMPRuntime(C, CmdArgs, ToolChain, Args, StaticOpenMP); in ConstructJob()
217 if (ToolChain.ShouldLinkCXXStdlib(Args)) in ConstructJob()
218 ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
241 addAsNeededOption(ToolChain, Args, CmdArgs, true); in ConstructJob()
243 addAsNeededOption(ToolChain, Args, CmdArgs, false); in ConstructJob()
245 addAsNeededOption(ToolChain, Args, CmdArgs, true); in ConstructJob()
247 addAsNeededOption(ToolChain, Args, CmdArgs, false); in ConstructJob()
252 const SanitizerArgs &SA = ToolChain.getSanitizerArgs(Args); in ConstructJob()
254 linkSanitizerRuntimeDeps(ToolChain, Args, CmdArgs); in ConstructJob()
268 if (ToolChain.getTriple().isX86() && SA.needsSharedRt() && in ConstructJob()
282 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtend))); in ConstructJob()
283 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtn.o"))); in ConstructJob()
286 ToolChain.addProfileRTLibs(Args, CmdArgs); in ConstructJob()
337 SanitizerMask Res = ToolChain::getSupportedSanitizers(); in getSupportedSanitizers()