Lines Matching refs:Args
28 const ArgList &Args, in ConstructJob() argument
30 claimNoWarnArgs(Args); in ConstructJob()
33 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
41 const char *Exec = Args.MakeArgString(getToolChain().GetProgramPath("as")); in ConstructJob()
50 const ArgList &Args, in ConstructJob() argument
57 Args.ClaimAllArgs(options::OPT_g_Group); in ConstructJob()
59 Args.ClaimAllArgs(options::OPT_emit_llvm); in ConstructJob()
62 Args.ClaimAllArgs(options::OPT_w); in ConstructJob()
65 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob()
67 if (Args.hasArg(options::OPT_static)) { in ConstructJob()
70 if (Args.hasArg(options::OPT_rdynamic)) in ConstructJob()
72 if (Args.hasArg(options::OPT_shared)) { in ConstructJob()
74 } else if (!Args.hasArg(options::OPT_r)) { in ConstructJob()
75 Args.AddAllArgs(CmdArgs, options::OPT_pie); in ConstructJob()
88 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles, in ConstructJob()
90 if (!Args.hasArg(options::OPT_shared)) { in ConstructJob()
91 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crt0.o"))); in ConstructJob()
93 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crti.o"))); in ConstructJob()
94 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_pie)) { in ConstructJob()
95 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtbeginS.o"))); in ConstructJob()
97 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtbegin.o"))); in ConstructJob()
101 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
102 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob()
103 Args.AddAllArgs(CmdArgs, in ConstructJob()
109 addLTOOptions(ToolChain, Args, CmdArgs, Output, Inputs[0], in ConstructJob()
113 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); in ConstructJob()
115 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs, in ConstructJob()
117 if (ToolChain.ShouldLinkCXXStdlib(Args)) in ConstructJob()
118 ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
122 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles, in ConstructJob()
124 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_pie)) in ConstructJob()
125 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtendS.o"))); in ConstructJob()
127 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtend.o"))); in ConstructJob()
128 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtn.o"))); in ConstructJob()
131 const char *Exec = Args.MakeArgString(ToolChain.GetLinkerPath()); in ConstructJob()
139 Ananas::Ananas(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) in Ananas() argument
140 : Generic_ELF(D, Triple, Args) { in Ananas()