clang 23.0.0git
OpenBSD.cpp
Go to the documentation of this file.
1//===--- OpenBSD.cpp - OpenBSD ToolChain Implementations --------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#include "OpenBSD.h"
10#include "Arch/ARM.h"
11#include "Arch/Mips.h"
12#include "Arch/Sparc.h"
13#include "clang/Config/config.h"
18#include "llvm/Option/ArgList.h"
19#include "llvm/Support/Path.h"
20#include "llvm/Support/VirtualFileSystem.h"
21
22using namespace clang::driver;
23using namespace clang::driver::tools;
24using namespace clang::driver::toolchains;
25using namespace clang;
26using namespace llvm::opt;
27
29 const InputInfo &Output,
30 const InputInfoList &Inputs,
31 const ArgList &Args,
32 const char *LinkingOutput) const {
33 const auto &ToolChain = static_cast<const OpenBSD &>(getToolChain());
34 const Driver &D = ToolChain.getDriver();
35 const llvm::Triple &Triple = ToolChain.getTriple();
36 ArgStringList CmdArgs;
37
38 claimNoWarnArgs(Args);
39
40 switch (ToolChain.getArch()) {
41 case llvm::Triple::x86:
42 // When building 32-bit code on OpenBSD/amd64, we have to explicitly
43 // instruct as in the base system to assemble 32-bit code.
44 CmdArgs.push_back("--32");
45 break;
46
47 case llvm::Triple::arm: {
48 StringRef MArch, MCPU;
49 arm::getARMArchCPUFromArgs(Args, MArch, MCPU, /*FromAs*/ true);
50 std::string Arch = arm::getARMTargetCPU(MCPU, MArch, Triple);
51 CmdArgs.push_back(Args.MakeArgString("-mcpu=" + Arch));
52 break;
53 }
54
55 case llvm::Triple::ppc:
56 CmdArgs.push_back("-mppc");
57 CmdArgs.push_back("-many");
58 break;
59
60 case llvm::Triple::sparcv9: {
61 CmdArgs.push_back("-64");
62 std::string CPU = getCPUName(D, Args, Triple);
63 CmdArgs.push_back(sparc::getSparcAsmModeForCPU(CPU, Triple));
64 AddAssemblerKPIC(ToolChain, Args, CmdArgs);
65 break;
66 }
67
68 case llvm::Triple::mips64:
69 case llvm::Triple::mips64el: {
70 StringRef CPUName;
71 StringRef ABIName;
72 mips::getMipsCPUAndABI(Args, Triple, CPUName, ABIName);
73
74 CmdArgs.push_back("-march");
75 CmdArgs.push_back(CPUName.data());
76
77 CmdArgs.push_back("-mabi");
78 CmdArgs.push_back(mips::getGnuCompatibleMipsABIName(ABIName).data());
79
80 if (Triple.isLittleEndian())
81 CmdArgs.push_back("-EL");
82 else
83 CmdArgs.push_back("-EB");
84
85 AddAssemblerKPIC(ToolChain, Args, CmdArgs);
86 break;
87 }
88
89 default:
90 break;
91 }
92
93 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler);
94
95 CmdArgs.push_back("-o");
96 CmdArgs.push_back(Output.getFilename());
97
98 for (const auto &II : Inputs)
99 CmdArgs.push_back(II.getFilename());
100
101 const char *Exec = Args.MakeArgString(ToolChain.GetProgramPath("as"));
102 C.addCommand(std::make_unique<Command>(JA, *this,
104 Exec, CmdArgs, Inputs, Output));
105}
106
108 const InputInfo &Output,
109 const InputInfoList &Inputs,
110 const ArgList &Args,
111 const char *LinkingOutput) const {
112 const auto &ToolChain = static_cast<const OpenBSD &>(getToolChain());
113 const Driver &D = ToolChain.getDriver();
114 const llvm::Triple &Triple = ToolChain.getTriple();
115 const llvm::Triple::ArchType Arch = ToolChain.getArch();
116 const bool Static = Args.hasArg(options::OPT_static);
117 const bool Shared = Args.hasArg(options::OPT_shared);
118 const bool Profiling = Args.hasArg(options::OPT_pg);
119 const bool Pie = Args.hasArg(options::OPT_pie);
120 const bool Nopie = Args.hasArg(options::OPT_no_pie, options::OPT_nopie);
121 const bool Relocatable = Args.hasArg(options::OPT_r);
122 ArgStringList CmdArgs;
123
124 // Silence warning for "clang -g foo.o -o foo"
125 Args.ClaimAllArgs(options::OPT_g_Group);
126 // and "clang -emit-llvm foo.o -o foo"
127 Args.ClaimAllArgs(options::OPT_emit_llvm);
128 // and for "clang -w foo.o -o foo". Other warning options are already
129 // handled somewhere else.
130 Args.ClaimAllArgs(options::OPT_w);
131
132 if (!D.SysRoot.empty())
133 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot));
134
135 if (Arch == llvm::Triple::mips64)
136 CmdArgs.push_back("-EB");
137 else if (Arch == llvm::Triple::mips64el)
138 CmdArgs.push_back("-EL");
139
140 if (!Args.hasArg(options::OPT_nostdlib) && !Shared && !Relocatable) {
141 CmdArgs.push_back("-e");
142 CmdArgs.push_back("__start");
143 }
144
145 CmdArgs.push_back("--eh-frame-hdr");
146 if (Static) {
147 CmdArgs.push_back("-Bstatic");
148 } else {
149 if (Args.hasArg(options::OPT_rdynamic))
150 CmdArgs.push_back("-export-dynamic");
151 if (Shared) {
152 CmdArgs.push_back("-shared");
153 } else if (!Relocatable) {
154 CmdArgs.push_back("-dynamic-linker");
155 CmdArgs.push_back("/usr/libexec/ld.so");
156 }
157 }
158
159 if (Pie)
160 CmdArgs.push_back("-pie");
161 if (Nopie || Profiling)
162 CmdArgs.push_back("-nopie");
163
164 if (Triple.isLoongArch64() || Triple.isRISCV64()) {
165 CmdArgs.push_back("-X");
166 if (Args.hasArg(options::OPT_mno_relax))
167 CmdArgs.push_back("--no-relax");
168 }
169
170 assert((Output.isFilename() || Output.isNothing()) && "Invalid output.");
171 if (Output.isFilename()) {
172 CmdArgs.push_back("-o");
173 CmdArgs.push_back(Output.getFilename());
174 }
175
176 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles,
177 options::OPT_r)) {
178 const char *crt0 = nullptr;
179 const char *crtbegin = nullptr;
180 if (!Shared) {
181 if (Profiling)
182 crt0 = "gcrt0.o";
183 else if (Static && !Nopie)
184 crt0 = "rcrt0.o";
185 else
186 crt0 = "crt0.o";
187 crtbegin = "crtbegin.o";
188 } else {
189 crtbegin = "crtbeginS.o";
190 }
191
192 if (crt0)
193 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crt0)));
194 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtbegin)));
195 }
196
197 Args.AddAllArgs(CmdArgs, options::OPT_L);
198 ToolChain.AddFilePathLibArgs(Args, CmdArgs);
199 Args.addAllArgs(CmdArgs,
200 {options::OPT_T_Group, options::OPT_s, options::OPT_t});
201
202 if (auto LTO = ToolChain.getLTOMode(Args); LTO != LTOK_None)
203 addLTOOptions(ToolChain, Args, CmdArgs, Output, Inputs, LTO == LTOK_Thin);
204
205 bool NeedsSanitizerDeps = addSanitizerRuntimes(ToolChain, Args, CmdArgs);
206 bool NeedsXRayDeps = addXRayRuntime(ToolChain, Args, CmdArgs);
207 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA);
208
209 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs,
210 options::OPT_r)) {
211 // Use the static OpenMP runtime with -static-openmp
212 bool StaticOpenMP = Args.hasArg(options::OPT_static_openmp) && !Static;
213 addOpenMPRuntime(C, CmdArgs, ToolChain, Args, StaticOpenMP);
214
215 if (D.CCCIsCXX()) {
217 ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs);
218 if (Profiling)
219 CmdArgs.push_back("-lm_p");
220 else
221 CmdArgs.push_back("-lm");
222 }
223
224 // Silence warnings when linking C code with a C++ '-stdlib' argument.
225 Args.ClaimAllArgs(options::OPT_stdlib_EQ);
226
227 // Additional linker set-up and flags for Fortran. This is required in order
228 // to generate executables. As Fortran runtime depends on the C runtime,
229 // these dependencies need to be listed before the C runtime below (i.e.
230 // AddRunTimeLibs).
231 if (D.IsFlangMode() &&
232 !Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
234 ToolChain.addFortranRuntimeLibs(Args, CmdArgs);
235 if (Profiling)
236 CmdArgs.push_back("-lm_p");
237 else
238 CmdArgs.push_back("-lm");
239 }
240
241 if (NeedsSanitizerDeps) {
242 CmdArgs.push_back(ToolChain.getCompilerRTArgString(Args, "builtins"));
243 linkSanitizerRuntimeDeps(ToolChain, Args, CmdArgs);
244 }
245 if (NeedsXRayDeps) {
246 CmdArgs.push_back(ToolChain.getCompilerRTArgString(Args, "builtins"));
247 linkXRayRuntimeDeps(ToolChain, Args, CmdArgs);
248 }
249 // FIXME: For some reason GCC passes -lgcc before adding
250 // the default system libraries. Just mimic this for now.
251 CmdArgs.push_back("-lcompiler_rt");
252
253 if (Args.hasArg(options::OPT_pthread)) {
254 if (!Shared && Profiling)
255 CmdArgs.push_back("-lpthread_p");
256 else
257 CmdArgs.push_back("-lpthread");
258 }
259
260 if (!Shared) {
261 if (Profiling)
262 CmdArgs.push_back("-lc_p");
263 else
264 CmdArgs.push_back("-lc");
265 }
266
267 CmdArgs.push_back("-lcompiler_rt");
268 }
269
270 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles,
271 options::OPT_r)) {
272 const char *crtend = nullptr;
273 if (!Shared)
274 crtend = "crtend.o";
275 else
276 crtend = "crtendS.o";
277
278 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtend)));
279 }
280
281 ToolChain.addProfileRTLibs(Args, CmdArgs);
282
283 const char *Exec = Args.MakeArgString(ToolChain.GetLinkerPath());
284 C.addCommand(std::make_unique<Command>(JA, *this,
286 Exec, CmdArgs, Inputs, Output));
287}
288
291 Action::OffloadKind DeviceOffloadKind) const {
292 const bool IsX86 = getTriple().getArch() == llvm::Triple::x86;
293 const bool IsX86_64 = getTriple().getArch() == llvm::Triple::x86_64;
294 SanitizerMask Res =
295 ToolChain::getSupportedSanitizers(BoundArch, DeviceOffloadKind);
296 if (IsX86 || IsX86_64) {
297 Res |= SanitizerKind::Vptr;
298 Res |= SanitizerKind::Fuzzer;
299 Res |= SanitizerKind::FuzzerNoLink;
300 }
301 if (IsX86_64) {
302 Res |= SanitizerKind::KernelAddress;
303 }
304 return Res;
305}
306
307/// OpenBSD - OpenBSD tool chain which can call as(1) and ld(1) directly.
308
309OpenBSD::OpenBSD(const Driver &D, const llvm::Triple &Triple,
310 const ArgList &Args)
311 : Generic_ELF(D, Triple, Args) {
312 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib"));
313}
314
316 const llvm::opt::ArgList &DriverArgs,
317 llvm::opt::ArgStringList &CC1Args) const {
318 const Driver &D = getDriver();
319
320 if (DriverArgs.hasArg(options::OPT_nostdinc))
321 return;
322
323 if (!DriverArgs.hasArg(options::OPT_nobuiltininc)) {
324 SmallString<128> Dir(D.ResourceDir);
325 llvm::sys::path::append(Dir, "include");
326 addSystemInclude(DriverArgs, CC1Args, Dir.str());
327 }
328
329 if (DriverArgs.hasArg(options::OPT_nostdlibinc))
330 return;
331
332 // Check for configure-time C include directories.
333 StringRef CIncludeDirs(C_INCLUDE_DIRS);
334 if (CIncludeDirs != "") {
336 CIncludeDirs.split(dirs, ":");
337 for (StringRef dir : dirs) {
338 StringRef Prefix =
339 llvm::sys::path::is_absolute(dir) ? StringRef(D.SysRoot) : "";
340 addExternCSystemInclude(DriverArgs, CC1Args, Prefix + dir);
341 }
342 return;
343 }
344
345 addExternCSystemInclude(DriverArgs, CC1Args,
346 concat(D.SysRoot, "/usr/include"));
347}
348
349void OpenBSD::addLibCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
350 llvm::opt::ArgStringList &CC1Args) const {
351 addSystemInclude(DriverArgs, CC1Args,
352 concat(getDriver().SysRoot, "/usr/include/c++/v1"));
353}
354
355void OpenBSD::AddCXXStdlibLibArgs(const ArgList &Args,
356 ArgStringList &CmdArgs) const {
357 bool Profiling = Args.hasArg(options::OPT_pg);
358
359 CmdArgs.push_back(Profiling ? "-lc++_p" : "-lc++");
360 if (Args.hasArg(options::OPT_fexperimental_library))
361 CmdArgs.push_back("-lc++experimental");
362 CmdArgs.push_back(Profiling ? "-lc++abi_p" : "-lc++abi");
363 CmdArgs.push_back(Profiling ? "-lpthread_p" : "-lpthread");
364}
365
366std::string OpenBSD::getCompilerRT(const ArgList &Args, StringRef Component,
367 FileType Type, bool IsFortran) const {
368 if (Component == "builtins") {
369 SmallString<128> Path(getDriver().SysRoot);
370 llvm::sys::path::append(Path, "/usr/lib/libcompiler_rt.a");
371 if (getVFS().exists(Path))
372 return std::string(Path);
373 }
374 SmallString<128> P(getDriver().ResourceDir);
375 std::string CRTBasename = buildCompilerRTBasename(
376 Args, Component, Type, /*AddArch=*/false, IsFortran);
377 llvm::sys::path::append(P, "lib", CRTBasename);
378 // Checks if this is the base system case which uses a different location.
379 if (getVFS().exists(P))
380 return std::string(P);
381 return ToolChain::getCompilerRT(Args, Component, Type, IsFortran);
382}
383
385 return new tools::openbsd::Assembler(*this);
386}
387
388Tool *OpenBSD::buildLinker() const { return new tools::openbsd::Linker(*this); }
389
390bool OpenBSD::HasNativeLLVMSupport() const { return true; }
391
393OpenBSD::getDefaultUnwindTableLevel(const ArgList &Args) const {
394 switch (getArch()) {
395 case llvm::Triple::arm:
397 default:
399 }
400}
static StringRef getTriple(const Command &Job)
The base class of the type hierarchy.
Definition TypeBase.h:1875
Compilation - A set of tasks to perform for a single driver invocation.
Definition Compilation.h:45
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition Driver.h:94
std::string SysRoot
sysroot, if present
Definition Driver.h:194
bool IsFlangMode() const
Whether the driver should invoke flang for fortran inputs.
Definition Driver.h:234
bool CCCIsCXX() const
Whether the driver should follow g++ like behavior.
Definition Driver.h:221
InputInfo - Wrapper for information about an input source.
Definition InputInfo.h:22
const char * getFilename() const
Definition InputInfo.h:83
bool isNothing() const
Definition InputInfo.h:74
bool isFilename() const
Definition InputInfo.h:75
ToolChain - Access to tools for a single platform.
Definition ToolChain.h:95
static void addSystemInclude(const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args, const Twine &Path)
Utility function to add a system include directory to CC1 arguments.
bool ShouldLinkCXXStdlib(const llvm::opt::ArgList &Args) const
Returns if the C++ standard library should be linked in.
static void addExternCSystemInclude(const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args, const Twine &Path)
Utility function to add a system include directory with extern "C" semantics to CC1 arguments.
virtual void addFortranRuntimeLibraryPath(const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs) const
Adds the path for the Fortran runtime libraries to CmdArgs.
std::string GetFilePath(const char *Name) const
virtual void addFortranRuntimeLibs(const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs) const
Adds Fortran runtime libraries to CmdArgs.
path_list & getFilePaths()
Definition ToolChain.h:325
llvm::Triple::ArchType getArch() const
Definition ToolChain.h:301
const Driver & getDriver() const
Definition ToolChain.h:285
static std::string concat(StringRef Path, const Twine &A, const Twine &B="", const Twine &C="", const Twine &D="")
llvm::vfs::FileSystem & getVFS() const
virtual std::string getCompilerRT(const llvm::opt::ArgList &Args, StringRef Component, FileType Type=ToolChain::FT_Static, bool IsFortran=false) const
LTOKind getLTOMode(const llvm::opt::ArgList &Args, Action::OffloadKind Kind=Action::OFK_None) const
Resolve the requested LTO mode for this toolchain.
virtual SanitizerMask getSupportedSanitizers(StringRef BoundArch, Action::OffloadKind DeviceOffloadKind) const
Return sanitizers which are available in this toolchain.
virtual void AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs) const
AddCXXStdlibLibArgs - Add the system specific linker arguments to use for the given C++ standard libr...
const llvm::Triple & getTriple() const
Definition ToolChain.h:287
virtual void addProfileRTLibs(const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs) const
addProfileRTLibs - When -fprofile-instr-profile is specified, try to pass a suitable profile runtime ...
std::string GetLinkerPath(bool *LinkerIsLLD=nullptr) const
Returns the linker path, respecting the -fuse-ld= argument to determine the linker suffix or name.
virtual std::string buildCompilerRTBasename(const llvm::opt::ArgList &Args, StringRef Component, FileType Type, bool AddArch, bool IsFortran=false) const
std::string GetProgramPath(const char *Name) const
virtual void AddFilePathLibArgs(const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs) const
AddFilePathLibArgs - Add each thing in getFilePaths() as a "-L" option.
const char * getCompilerRTArgString(const llvm::opt::ArgList &Args, StringRef Component, FileType Type=ToolChain::FT_Static, bool IsFortran=false) const
Tool - Information on a specific compilation tool.
Definition Tool.h:32
const ToolChain & getToolChain() const
Definition Tool.h:52
Generic_ELF(const Driver &D, const llvm::Triple &Triple, const llvm::opt::ArgList &Args)
Definition Gnu.h:439
void addLibCxxIncludePaths(const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args) const override
Definition OpenBSD.cpp:349
OpenBSD(const Driver &D, const llvm::Triple &Triple, const llvm::opt::ArgList &Args)
OpenBSD - OpenBSD tool chain which can call as(1) and ld(1) directly.
Definition OpenBSD.cpp:309
SanitizerMask getSupportedSanitizers(StringRef BoundArch, Action::OffloadKind DeviceOffloadKind) const override
Return sanitizers which are available in this toolchain.
Definition OpenBSD.cpp:290
bool HasNativeLLVMSupport() const override
HasNativeLTOLinker - Check whether the linker and related tools have native LLVM support.
Definition OpenBSD.cpp:390
void AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs) const override
AddCXXStdlibLibArgs - Add the system specific linker arguments to use for the given C++ standard libr...
Definition OpenBSD.cpp:355
UnwindTableLevel getDefaultUnwindTableLevel(const llvm::opt::ArgList &Args) const override
How detailed should the unwind tables be by default.
Definition OpenBSD.cpp:393
Tool * buildAssembler() const override
Definition OpenBSD.cpp:384
Tool * buildLinker() const override
Definition OpenBSD.cpp:388
void AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args) const override
Add the clang cc1 arguments for system include paths.
Definition OpenBSD.cpp:315
std::string getCompilerRT(const llvm::opt::ArgList &Args, StringRef Component, FileType Type=ToolChain::FT_Static, bool IsFortran=false) const override
Definition OpenBSD.cpp:366
void ConstructJob(Compilation &C, const JobAction &JA, const InputInfo &Output, const InputInfoList &Inputs, const llvm::opt::ArgList &TCArgs, const char *LinkingOutput) const override
ConstructJob - Construct jobs to perform the action JA, writing to Output and with Inputs,...
Definition OpenBSD.cpp:28
void ConstructJob(Compilation &C, const JobAction &JA, const InputInfo &Output, const InputInfoList &Inputs, const llvm::opt::ArgList &TCArgs, const char *LinkingOutput) const override
ConstructJob - Construct jobs to perform the action JA, writing to Output and with Inputs,...
Definition OpenBSD.cpp:107
void getARMArchCPUFromArgs(const llvm::opt::ArgList &Args, llvm::StringRef &Arch, llvm::StringRef &CPU, bool FromAs=false)
std::string getARMTargetCPU(StringRef CPU, llvm::StringRef Arch, const llvm::Triple &Triple)
StringRef getGnuCompatibleMipsABIName(StringRef ABI)
Definition Mips.cpp:137
void getMipsCPUAndABI(const llvm::opt::ArgList &Args, const llvm::Triple &Triple, StringRef &CPUName, StringRef &ABIName)
const char * getSparcAsmModeForCPU(llvm::StringRef Name, const llvm::Triple &Triple)
std::string getCPUName(const Driver &D, const llvm::opt::ArgList &Args, const llvm::Triple &T, bool FromAs=false)
void addLTOOptions(const ToolChain &ToolChain, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs, const InputInfo &Output, const InputInfoList &Inputs, bool IsThinLTO)
void linkXRayRuntimeDeps(const ToolChain &TC, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs)
void linkSanitizerRuntimeDeps(const ToolChain &TC, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs)
bool addSanitizerRuntimes(const ToolChain &TC, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs)
bool addXRayRuntime(const ToolChain &TC, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs)
void AddAssemblerKPIC(const ToolChain &ToolChain, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs)
bool addOpenMPRuntime(const Compilation &C, llvm::opt::ArgStringList &CmdArgs, const ToolChain &TC, const llvm::opt::ArgList &Args, bool ForceStaticHostRuntime=false, bool IsOffloadingHost=false, bool GompNeedsRT=false)
Returns true, if an OpenMP runtime has been added.
void claimNoWarnArgs(const llvm::opt::ArgList &Args)
void AddLinkerInputs(const ToolChain &TC, const InputInfoList &Inputs, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs, const JobAction &JA)
SmallVector< InputInfo, 4 > InputInfoList
Definition Driver.h:50
The JSON file list parser is used to communicate input to InstallAPI.
static constexpr ResponseFileSupport AtFileCurCP()
Definition Job.h:92