Lines Matching refs:Args

34                                       const ArgList &Args,  in ConstructJob()  argument
37 gnutools::Assembler::ConstructJob(C, JA, Output, Inputs, Args, LinkingOutput); in ConstructJob()
40 bool solaris::isLinkerGnuLd(const ToolChain &TC, const ArgList &Args) { in isLinkerGnuLd() argument
42 const Arg *A = Args.getLastArg(options::OPT_fuse_ld_EQ); in isLinkerGnuLd()
47 static bool getPIE(const ArgList &Args, const ToolChain &TC) { in getPIE() argument
48 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_static) || in getPIE()
49 Args.hasArg(options::OPT_r)) in getPIE()
52 return Args.hasFlag(options::OPT_pie, options::OPT_no_pie, in getPIE()
53 TC.isPIEDefault(Args)); in getPIE()
57 std::string solaris::Linker::getLinkerPath(const ArgList &Args) const { in getLinkerPath()
59 if (const Arg *A = Args.getLastArg(options::OPT_fuse_ld_EQ)) { in getLinkerPath()
74 << A->getAsString(Args); in getLinkerPath()
85 const ArgList &Args, in ConstructJob() argument
90 const bool IsPIE = getPIE(Args, ToolChain); in ConstructJob()
91 const bool LinkerIsGnuLd = isLinkerGnuLd(ToolChain, Args); in ConstructJob()
98 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_shared, in ConstructJob()
113 if (Args.hasArg(options::OPT_static)) { in ConstructJob()
117 if (!Args.hasArg(options::OPT_r) && Args.hasArg(options::OPT_shared)) in ConstructJob()
122 Args.ClaimAllArgs(options::OPT_pthread); in ConstructJob()
123 Args.ClaimAllArgs(options::OPT_pthreads); in ConstructJob()
149 if (Args.hasArg(options::OPT_rdynamic)) in ConstructJob()
155 Args.ClaimAllArgs(options::OPT_rdynamic); in ConstructJob()
164 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles, in ConstructJob()
166 if (!Args.hasArg(options::OPT_shared)) 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()
171 const Arg *Std = Args.getLastArg(options::OPT_std_EQ, options::OPT_ansi); 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()
193 if (Args.hasArg(options::OPT_shared) || IsPIE) 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()
204 Args.addAllArgs(CmdArgs, {options::OPT_L, options::OPT_T_Group}); in ConstructJob()
206 bool NeedsSanitizerDeps = addSanitizerRuntimes(ToolChain, Args, CmdArgs); in ConstructJob()
207 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); in ConstructJob()
209 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs, in ConstructJob()
212 bool StaticOpenMP = Args.hasArg(options::OPT_static_openmp) && in ConstructJob()
213 !Args.hasArg(options::OPT_static); 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()
222 Args.ClaimAllArgs(options::OPT_stdlib_EQ); in ConstructJob()
227 addFortranRuntimeLibraryPath(getToolChain(), Args, CmdArgs); in ConstructJob()
228 addFortranRuntimeLibs(getToolChain(), Args, CmdArgs); in ConstructJob()
231 if (Args.hasArg(options::OPT_fstack_protector) || in ConstructJob()
232 Args.hasArg(options::OPT_fstack_protector_strong) || in ConstructJob()
233 Args.hasArg(options::OPT_fstack_protector_all)) { 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()
249 if (!Args.hasArg(options::OPT_shared)) { in ConstructJob()
252 const SanitizerArgs &SA = ToolChain.getSanitizerArgs(Args); in ConstructJob()
254 linkSanitizerRuntimeDeps(ToolChain, Args, CmdArgs); in ConstructJob()
275 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles, in ConstructJob()
278 if (Args.hasArg(options::OPT_shared) || IsPIE) 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()
288 const char *Exec = Args.MakeArgString(getLinkerPath(Args)); in ConstructJob()
310 const ArgList &Args) in Solaris() argument
311 : Generic_ELF(D, Triple, Args) { in Solaris()
313 GCCInstallation.init(Triple, Args); in Solaris()