Lines Matching refs:Args
31 const ArgList &Args, in ConstructJob() argument
38 claimNoWarnArgs(Args); in ConstructJob()
51 arm::getARMArchCPUFromArgs(Args, MArch, MCPU, /*FromAs*/ true); in ConstructJob()
53 CmdArgs.push_back(Args.MakeArgString("-mcpu=" + Arch)); in ConstructJob()
64 std::string CPU = getCPUName(D, Args, Triple); in ConstructJob()
66 AddAssemblerKPIC(ToolChain, Args, CmdArgs); in ConstructJob()
74 mips::getMipsCPUAndABI(Args, Triple, CPUName, ABIName); in ConstructJob()
87 AddAssemblerKPIC(ToolChain, Args, CmdArgs); in ConstructJob()
95 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
103 const char *Exec = Args.MakeArgString(ToolChain.GetProgramPath("as")); in ConstructJob()
112 const ArgList &Args, in ConstructJob() argument
121 Args.ClaimAllArgs(options::OPT_g_Group); in ConstructJob()
123 Args.ClaimAllArgs(options::OPT_emit_llvm); in ConstructJob()
126 Args.ClaimAllArgs(options::OPT_w); in ConstructJob()
129 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob()
136 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_shared)) { in ConstructJob()
142 if (Args.hasArg(options::OPT_static)) { in ConstructJob()
145 if (Args.hasArg(options::OPT_rdynamic)) in ConstructJob()
148 if (Args.hasArg(options::OPT_shared)) { in ConstructJob()
150 } else if (!Args.hasArg(options::OPT_r)) { in ConstructJob()
156 if (Args.hasArg(options::OPT_pie)) in ConstructJob()
158 if (Args.hasArg(options::OPT_nopie) || Args.hasArg(options::OPT_pg)) in ConstructJob()
171 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles, in ConstructJob()
175 if (!Args.hasArg(options::OPT_shared)) { in ConstructJob()
176 if (Args.hasArg(options::OPT_pg)) in ConstructJob()
178 else if (Args.hasArg(options::OPT_static) && in ConstructJob()
179 !Args.hasArg(options::OPT_nopie)) in ConstructJob()
189 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crt0))); in ConstructJob()
190 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtbegin))); in ConstructJob()
193 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
194 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob()
195 Args.AddAllArgs(CmdArgs, {options::OPT_T_Group, options::OPT_e, in ConstructJob()
199 bool NeedsSanitizerDeps = addSanitizerRuntimes(ToolChain, Args, CmdArgs); in ConstructJob()
200 bool NeedsXRayDeps = addXRayRuntime(ToolChain, Args, CmdArgs); in ConstructJob()
201 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); in ConstructJob()
203 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs, in ConstructJob()
206 bool StaticOpenMP = Args.hasArg(options::OPT_static_openmp) && in ConstructJob()
207 !Args.hasArg(options::OPT_static); in ConstructJob()
208 addOpenMPRuntime(CmdArgs, ToolChain, Args, StaticOpenMP); in ConstructJob()
211 if (ToolChain.ShouldLinkCXXStdlib(Args)) in ConstructJob()
212 ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
213 if (Args.hasArg(options::OPT_pg)) in ConstructJob()
219 CmdArgs.push_back(ToolChain.getCompilerRTArgString(Args, "builtins")); in ConstructJob()
223 CmdArgs.push_back(ToolChain.getCompilerRTArgString(Args, "builtins")); in ConstructJob()
230 if (Args.hasArg(options::OPT_pthread)) { in ConstructJob()
231 if (!Args.hasArg(options::OPT_shared) && Args.hasArg(options::OPT_pg)) in ConstructJob()
237 if (!Args.hasArg(options::OPT_shared)) { in ConstructJob()
238 if (Args.hasArg(options::OPT_pg)) in ConstructJob()
247 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles, in ConstructJob()
250 if (!Args.hasArg(options::OPT_shared)) in ConstructJob()
255 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtend))); in ConstructJob()
258 ToolChain.addProfileRTLibs(Args, CmdArgs); in ConstructJob()
260 const char *Exec = Args.MakeArgString(ToolChain.GetLinkerPath()); in ConstructJob()
285 const ArgList &Args) in OpenBSD() argument
286 : Generic_ELF(D, Triple, Args) { in OpenBSD()
330 void OpenBSD::AddCXXStdlibLibArgs(const ArgList &Args, in AddCXXStdlibLibArgs() argument
332 bool Profiling = Args.hasArg(options::OPT_pg); in AddCXXStdlibLibArgs()
335 if (Args.hasArg(options::OPT_fexperimental_library)) in AddCXXStdlibLibArgs()
341 std::string OpenBSD::getCompilerRT(const ArgList &Args, StringRef Component, in getCompilerRT() argument
350 buildCompilerRTBasename(Args, Component, Type, /*AddArch=*/false); in getCompilerRT()
355 return ToolChain::getCompilerRT(Args, Component, Type); in getCompilerRT()
366 bool OpenBSD::IsUnwindTablesDefault(const ArgList &Args) const { in IsUnwindTablesDefault()