Lines Matching refs:Args

30                                       const ArgList &Args,  in ConstructJob()  argument
32 claimNoWarnArgs(Args); in ConstructJob()
54 mips::getMipsCPUAndABI(Args, getToolChain().getTriple(), CPUName, ABIName); in ConstructJob()
67 if (Arg *A = Args.getLastArg(options::OPT_G)) { in ConstructJob()
69 CmdArgs.push_back(Args.MakeArgString("-G" + v)); in ConstructJob()
73 AddAssemblerKPIC(getToolChain(), Args, CmdArgs); in ConstructJob()
80 arm::FloatABI ABI = arm::getARMFloatABI(getToolChain(), Args); in ConstructJob()
102 std::string CPU = getCPUName(D, Args, getToolChain().getTriple()); in ConstructJob()
105 AddAssemblerKPIC(getToolChain(), Args, CmdArgs); in ConstructJob()
110 for (const Arg *A : Args.filtered(options::OPT_ffile_prefix_map_EQ, in ConstructJob()
117 CmdArgs.push_back(Args.MakeArgString("--debug-prefix-map")); in ConstructJob()
118 CmdArgs.push_back(Args.MakeArgString(Map)); in ConstructJob()
123 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
131 const char *Exec = Args.MakeArgString(getToolChain().GetProgramPath("as")); in ConstructJob()
140 const ArgList &Args, in ConstructJob() argument
147 !Args.hasArg(options::OPT_shared) && in ConstructJob()
148 (Args.hasArg(options::OPT_pie) || ToolChain.isPIEDefault(Args)); in ConstructJob()
152 Args.ClaimAllArgs(options::OPT_g_Group); in ConstructJob()
154 Args.ClaimAllArgs(options::OPT_emit_llvm); in ConstructJob()
157 Args.ClaimAllArgs(options::OPT_w); in ConstructJob()
160 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob()
166 if (Args.hasArg(options::OPT_static)) { in ConstructJob()
169 if (Args.hasArg(options::OPT_rdynamic)) in ConstructJob()
171 if (Args.hasArg(options::OPT_shared)) { in ConstructJob()
173 } else if (!Args.hasArg(options::OPT_r)) { in ConstructJob()
211 if (tools::mips::hasMipsAbiArg(Args, "n32")) in ConstructJob()
218 if (tools::mips::hasMipsAbiArg(Args, "n32")) in ConstructJob()
237 if (Arg *A = Args.getLastArg(options::OPT_G)) { in ConstructJob()
240 CmdArgs.push_back(Args.MakeArgString("-G" + v)); in ConstructJob()
252 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles, in ConstructJob()
255 if (!Args.hasArg(options::OPT_shared)) { in ConstructJob()
256 if (Args.hasArg(options::OPT_pg)) in ConstructJob()
264 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crt1))); in ConstructJob()
266 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crti.o"))); in ConstructJob()
269 if (Args.hasArg(options::OPT_static)) in ConstructJob()
271 else if (Args.hasArg(options::OPT_shared) || IsPIE) in ConstructJob()
276 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtbegin))); in ConstructJob()
279 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
280 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob()
281 Args.AddAllArgs(CmdArgs, options::OPT_T_Group); in ConstructJob()
282 Args.AddAllArgs(CmdArgs, options::OPT_e); in ConstructJob()
283 Args.AddAllArgs(CmdArgs, options::OPT_s); in ConstructJob()
284 Args.AddAllArgs(CmdArgs, options::OPT_t); in ConstructJob()
285 Args.AddAllArgs(CmdArgs, options::OPT_Z_Flag); in ConstructJob()
286 Args.AddAllArgs(CmdArgs, options::OPT_r); in ConstructJob()
290 addLTOOptions(ToolChain, Args, CmdArgs, Output, Inputs[0], in ConstructJob()
294 bool NeedsSanitizerDeps = addSanitizerRuntimes(ToolChain, Args, CmdArgs); in ConstructJob()
295 bool NeedsXRayDeps = addXRayRuntime(ToolChain, Args, CmdArgs); in ConstructJob()
296 addLinkerCompressDebugSectionsOption(ToolChain, Args, CmdArgs); in ConstructJob()
297 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); in ConstructJob()
300 bool Profiling = Args.hasArg(options::OPT_pg) && Major != 0 && Major < 14; in ConstructJob()
301 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs, in ConstructJob()
304 bool StaticOpenMP = Args.hasArg(options::OPT_static_openmp) && in ConstructJob()
305 !Args.hasArg(options::OPT_static); in ConstructJob()
306 addOpenMPRuntime(CmdArgs, ToolChain, Args, StaticOpenMP); in ConstructJob()
309 if (ToolChain.ShouldLinkCXXStdlib(Args)) in ConstructJob()
310 ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
326 if (Args.hasArg(options::OPT_static)) { in ConstructJob()
336 if (Args.hasArg(options::OPT_pthread)) { in ConstructJob()
344 if (Args.hasArg(options::OPT_shared)) in ConstructJob()
354 if (Args.hasArg(options::OPT_static)) { in ConstructJob()
365 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles, in ConstructJob()
367 if (Args.hasArg(options::OPT_shared) || IsPIE) in ConstructJob()
368 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtendS.o"))); in ConstructJob()
370 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtend.o"))); in ConstructJob()
371 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtn.o"))); in ConstructJob()
374 ToolChain.addProfileRTLibs(Args, CmdArgs); in ConstructJob()
376 const char *Exec = Args.MakeArgString(getToolChain().GetLinkerPath()); in ConstructJob()
385 const ArgList &Args) in FreeBSD() argument
386 : Generic_ELF(D, Triple, Args) { in FreeBSD()
424 void FreeBSD::AddCXXStdlibLibArgs(const ArgList &Args, in AddCXXStdlibLibArgs() argument
426 CXXStdlibType Type = GetCXXStdlibType(Args); in AddCXXStdlibLibArgs()
428 bool Profiling = Args.hasArg(options::OPT_pg) && Major != 0 && Major < 14; in AddCXXStdlibLibArgs()
433 if (Args.hasArg(options::OPT_fexperimental_library)) in AddCXXStdlibLibArgs()
459 llvm::ExceptionHandling FreeBSD::GetExceptionModel(const ArgList &Args) const { in GetExceptionModel()
476 bool FreeBSD::IsUnwindTablesDefault(const ArgList &Args) const { return true; } in IsUnwindTablesDefault()
478 bool FreeBSD::isPIEDefault(const llvm::opt::ArgList &Args) const { in isPIEDefault()
479 return getSanitizerArgs(Args).requiresPIE(); in isPIEDefault()