Lines Matching refs:Args

33                                   const ArgList &Args,  in ConstructJob()  argument
63 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
82 const char *Exec = Args.MakeArgString(getToolChain().GetProgramPath("as")); in ConstructJob()
112 const InputInfoList &Inputs, const ArgList &Args, in ConstructJob() argument
130 if (Args.hasArg(options::OPT_static)) in ConstructJob()
134 if (Args.hasArg(options::OPT_shared)) { in ConstructJob()
139 if (Args.hasFlag(options::OPT_mxcoff_roptr, options::OPT_mno_xcoff_roptr, in ConstructJob()
141 if (Args.hasArg(options::OPT_shared)) in ConstructJob()
153 if (Args.hasFlag(options::OPT_fprofile_arcs, options::OPT_fno_profile_arcs, in ConstructJob()
155 Args.hasFlag(options::OPT_fprofile_generate, in ConstructJob()
157 Args.hasFlag(options::OPT_fprofile_generate_EQ, in ConstructJob()
159 Args.hasFlag(options::OPT_fprofile_instr_generate, in ConstructJob()
161 Args.hasFlag(options::OPT_fprofile_instr_generate_EQ, in ConstructJob()
163 Args.hasFlag(options::OPT_fcs_profile_generate, in ConstructJob()
165 Args.hasFlag(options::OPT_fcs_profile_generate_EQ, in ConstructJob()
167 Args.hasArg(options::OPT_fcreate_profile) || in ConstructJob()
168 Args.hasArg(options::OPT_coverage)) in ConstructJob()
172 Args.getLastArg(clang::driver::options::OPT_mxcoff_build_id_EQ)) { in ConstructJob()
183 CmdArgs.push_back(Args.MakeArgString(LinkerFlag)); in ConstructJob()
207 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles, in ConstructJob()
209 auto getCrt0Basename = [&Args, IsArch32Bit] { in ConstructJob()
210 if (Arg *A = Args.getLastArgNoClaim(options::OPT_p, options::OPT_pg)) { in ConstructJob()
221 Args.MakeArgString(ToolChain.GetFilePath(getCrt0Basename()))); in ConstructJob()
223 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
234 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); in ConstructJob()
246 addLTOOptions(ToolChain, Args, CmdArgs, Output, *Input, in ConstructJob()
250 if (Args.hasArg(options::OPT_shared) && !hasExportListLinkerOpts(CmdArgs)) { in ConstructJob()
252 const char *CreateExportListExec = Args.MakeArgString( in ConstructJob()
281 CmdArgs.push_back(Args.MakeArgString(llvm::Twine("-bE:") + ExportList)); in ConstructJob()
285 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
286 if (!Args.hasArg(options::OPT_r)) { in ConstructJob()
287 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob()
288 ToolChain.addProfileRTLibs(Args, CmdArgs); in ConstructJob()
290 if (getToolChain().ShouldLinkCXXStdlib(Args)) in ConstructJob()
291 getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
293 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) { in ConstructJob()
294 AddRunTimeLibs(ToolChain, D, CmdArgs, Args); in ConstructJob()
297 if (Args.hasFlag(options::OPT_fopenmp, options::OPT_fopenmp_EQ, in ConstructJob()
299 switch (ToolChain.getDriver().getOpenMPRuntime(Args)) { in ConstructJob()
316 if (Args.hasArg(options::OPT_pthreads, options::OPT_pthread)) in ConstructJob()
324 if (Args.hasArgNoClaim(options::OPT_p, options::OPT_pg)) { in ConstructJob()
325 CmdArgs.push_back(Args.MakeArgString((llvm::Twine("-L") + D.SysRoot) + in ConstructJob()
327 CmdArgs.push_back(Args.MakeArgString((llvm::Twine("-L") + D.SysRoot) + in ConstructJob()
334 addFortranRuntimeLibraryPath(ToolChain, Args, CmdArgs); in ConstructJob()
335 addFortranRuntimeLibs(ToolChain, Args, CmdArgs); in ConstructJob()
339 const char *Exec = Args.MakeArgString(ToolChain.GetLinkerPath()); in ConstructJob()
345 AIX::AIX(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) in AIX() argument
346 : ToolChain(D, Triple, Args) { in AIX()
349 ParseInlineAsmUsingAsmParser = Args.hasFlag( in AIX()
449 void AIX::AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args, in AddCXXStdlibLibArgs() argument
451 switch (GetCXXStdlibType(Args)) { in AddCXXStdlibLibArgs()
456 if (Args.hasArg(options::OPT_fexperimental_library)) in AddCXXStdlibLibArgs()
467 static void addTocDataOptions(const llvm::opt::ArgList &Args, in addTocDataOptions() argument
474 const bool TOCDataGloballyinEffect = [&Args]() { in addTocDataOptions()
476 Args.getLastArg(options::OPT_mtocdata, options::OPT_mno_tocdata)) in addTocDataOptions()
497 Args.filtered(options::OPT_mtocdata_EQ, options::OPT_mno_tocdata_EQ)) { in addTocDataOptions()
535 CC1Args.push_back(Args.MakeArgString(llvm::Twine( in addTocDataOptions()
540 const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CC1Args, in addClangTargetOptions() argument
542 Args.AddLastArg(CC1Args, options::OPT_mignore_xcoff_visibility); in addClangTargetOptions()
543 Args.AddLastArg(CC1Args, options::OPT_mdefault_visibility_export_mapping_EQ); in addClangTargetOptions()
544 Args.addOptInFlag(CC1Args, options::OPT_mxcoff_roptr, options::OPT_mno_xcoff_roptr); in addClangTargetOptions()
547 if (Args.hasArg(options::OPT_mtocdata_EQ, options::OPT_mno_tocdata_EQ, in addClangTargetOptions()
549 addTocDataOptions(Args, CC1Args, getDriver()); in addClangTargetOptions()
551 if (Args.hasFlag(options::OPT_fxl_pragma_pack, in addClangTargetOptions()
557 if (!Args.getLastArgNoClaim(options::OPT_fsized_deallocation, in addClangTargetOptions()
562 void AIX::addProfileRTLibs(const llvm::opt::ArgList &Args, in addProfileRTLibs() argument
564 if (needsProfileRT(Args)) { in addProfileRTLibs()
567 CmdArgs.push_back(Args.MakeArgString( in addProfileRTLibs()
571 Args.getLastArgNoClaim(options::OPT_fprofile_update_EQ)) { in addProfileRTLibs()
578 ToolChain::addProfileRTLibs(Args, CmdArgs); in addProfileRTLibs()