clang  16.0.0git
AIX.cpp
Go to the documentation of this file.
1 //===--- AIX.cpp - AIX 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 "AIX.h"
10 #include "Arch/PPC.h"
11 #include "CommonArgs.h"
13 #include "clang/Driver/Options.h"
15 #include "llvm/Option/ArgList.h"
16 #include "llvm/ProfileData/InstrProf.h"
17 #include "llvm/Support/Path.h"
18 
20 using namespace clang::driver;
21 using namespace clang::driver::tools;
22 using namespace clang::driver::toolchains;
23 
24 using namespace llvm::opt;
25 using namespace llvm::sys;
26 
28  const InputInfo &Output,
29  const InputInfoList &Inputs,
30  const ArgList &Args,
31  const char *LinkingOutput) const {
32  ArgStringList CmdArgs;
33 
34  const bool IsArch32Bit = getToolChain().getTriple().isArch32Bit();
35  const bool IsArch64Bit = getToolChain().getTriple().isArch64Bit();
36  // Only support 32 and 64 bit.
37  if (!IsArch32Bit && !IsArch64Bit)
38  llvm_unreachable("Unsupported bit width value.");
39 
40  // Specify the mode in which the as(1) command operates.
41  if (IsArch32Bit) {
42  CmdArgs.push_back("-a32");
43  } else {
44  // Must be 64-bit, otherwise asserted already.
45  CmdArgs.push_back("-a64");
46  }
47 
48  // Accept any mixture of instructions.
49  // On Power for AIX and Linux, this behaviour matches that of GCC for both the
50  // user-provided assembler source case and the compiler-produced assembler
51  // source case. Yet XL with user-provided assembler source would not add this.
52  CmdArgs.push_back("-many");
53 
54  Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler);
55 
56  // Specify assembler output file.
57  assert((Output.isFilename() || Output.isNothing()) && "Invalid output.");
58  if (Output.isFilename()) {
59  CmdArgs.push_back("-o");
60  CmdArgs.push_back(Output.getFilename());
61  }
62 
63  // Specify assembler input file.
64  // The system assembler on AIX takes exactly one input file. The driver is
65  // expected to invoke as(1) separately for each assembler source input file.
66  if (Inputs.size() != 1)
67  llvm_unreachable("Invalid number of input files.");
68  const InputInfo &II = Inputs[0];
69  assert((II.isFilename() || II.isNothing()) && "Invalid input.");
70  if (II.isFilename())
71  CmdArgs.push_back(II.getFilename());
72 
73  const char *Exec = Args.MakeArgString(getToolChain().GetProgramPath("as"));
74  C.addCommand(std::make_unique<Command>(JA, *this, ResponseFileSupport::None(),
75  Exec, CmdArgs, Inputs, Output));
76 }
77 
78 // Determine whether there are any linker options that supply an export list
79 // (or equivalent information about what to export) being sent to the linker.
80 static bool hasExportListLinkerOpts(const ArgStringList &CmdArgs) {
81  for (size_t i = 0, Size = CmdArgs.size(); i < Size; ++i) {
82  llvm::StringRef ArgString(CmdArgs[i]);
83 
84  if (ArgString.startswith("-bE:") || ArgString.startswith("-bexport:") ||
85  ArgString == "-bexpall" || ArgString == "-bexpfull")
86  return true;
87 
88  // If we split -b option, check the next opt.
89  if (ArgString == "-b" && i + 1 < Size) {
90  ++i;
91  llvm::StringRef ArgNextString(CmdArgs[i]);
92  if (ArgNextString.startswith("E:") ||
93  ArgNextString.startswith("export:") || ArgNextString == "expall" ||
94  ArgNextString == "expfull")
95  return true;
96  }
97  }
98  return false;
99 }
100 
102  const InputInfo &Output,
103  const InputInfoList &Inputs, const ArgList &Args,
104  const char *LinkingOutput) const {
105  const AIX &ToolChain = static_cast<const AIX &>(getToolChain());
106  const Driver &D = ToolChain.getDriver();
107  ArgStringList CmdArgs;
108 
109  const bool IsArch32Bit = ToolChain.getTriple().isArch32Bit();
110  const bool IsArch64Bit = ToolChain.getTriple().isArch64Bit();
111  // Only support 32 and 64 bit.
112  if (!(IsArch32Bit || IsArch64Bit))
113  llvm_unreachable("Unsupported bit width value.");
114 
115  // Force static linking when "-static" is present.
116  if (Args.hasArg(options::OPT_static))
117  CmdArgs.push_back("-bnso");
118 
119  // Add options for shared libraries.
120  if (Args.hasArg(options::OPT_shared)) {
121  CmdArgs.push_back("-bM:SRE");
122  CmdArgs.push_back("-bnoentry");
123  }
124 
125  // PGO instrumentation generates symbols belonging to special sections, and
126  // the linker needs to place all symbols in a particular section together in
127  // memory; the AIX linker does that under an option.
128  if (Args.hasFlag(options::OPT_fprofile_arcs, options::OPT_fno_profile_arcs,
129  false) ||
130  Args.hasFlag(options::OPT_fprofile_generate,
131  options::OPT_fno_profile_generate, false) ||
132  Args.hasFlag(options::OPT_fprofile_generate_EQ,
133  options::OPT_fno_profile_generate, false) ||
134  Args.hasFlag(options::OPT_fprofile_instr_generate,
135  options::OPT_fno_profile_instr_generate, false) ||
136  Args.hasFlag(options::OPT_fprofile_instr_generate_EQ,
137  options::OPT_fno_profile_instr_generate, false) ||
138  Args.hasFlag(options::OPT_fcs_profile_generate,
139  options::OPT_fno_profile_generate, false) ||
140  Args.hasFlag(options::OPT_fcs_profile_generate_EQ,
141  options::OPT_fno_profile_generate, false) ||
142  Args.hasArg(options::OPT_fcreate_profile) ||
143  Args.hasArg(options::OPT_coverage))
144  CmdArgs.push_back("-bdbg:namedsects:ss");
145 
146  // Specify linker output file.
147  assert((Output.isFilename() || Output.isNothing()) && "Invalid output.");
148  if (Output.isFilename()) {
149  CmdArgs.push_back("-o");
150  CmdArgs.push_back(Output.getFilename());
151  }
152 
153  // Set linking mode (i.e., 32/64-bit) and the address of
154  // text and data sections based on arch bit width.
155  if (IsArch32Bit) {
156  CmdArgs.push_back("-b32");
157  CmdArgs.push_back("-bpT:0x10000000");
158  CmdArgs.push_back("-bpD:0x20000000");
159  } else {
160  // Must be 64-bit, otherwise asserted already.
161  CmdArgs.push_back("-b64");
162  CmdArgs.push_back("-bpT:0x100000000");
163  CmdArgs.push_back("-bpD:0x110000000");
164  }
165 
166  auto getCrt0Basename = [&Args, IsArch32Bit] {
167  // Enable gprofiling when "-pg" is specified.
168  if (Args.hasArg(options::OPT_pg))
169  return IsArch32Bit ? "gcrt0.o" : "gcrt0_64.o";
170  // Enable profiling when "-p" is specified.
171  else if (Args.hasArg(options::OPT_p))
172  return IsArch32Bit ? "mcrt0.o" : "mcrt0_64.o";
173  else
174  return IsArch32Bit ? "crt0.o" : "crt0_64.o";
175  };
176 
177  if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles,
178  options::OPT_shared)) {
179  CmdArgs.push_back(
180  Args.MakeArgString(ToolChain.GetFilePath(getCrt0Basename())));
181 
182  CmdArgs.push_back(Args.MakeArgString(
183  ToolChain.GetFilePath(IsArch32Bit ? "crti.o" : "crti_64.o")));
184  }
185 
186  // Collect all static constructor and destructor functions in both C and CXX
187  // language link invocations. This has to come before AddLinkerInputs as the
188  // implied option needs to precede any other '-bcdtors' settings or
189  // '-bnocdtors' that '-Wl' might forward.
190  CmdArgs.push_back("-bcdtors:all:0:s");
191 
192  // Specify linker input file(s).
193  AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA);
194 
195  if (D.isUsingLTO()) {
196  assert(!Inputs.empty() && "Must have at least one input.");
197  addLTOOptions(ToolChain, Args, CmdArgs, Output, Inputs[0],
198  D.getLTOMode() == LTOK_Thin);
199  }
200 
201  if (Args.hasArg(options::OPT_shared) && !hasExportListLinkerOpts(CmdArgs)) {
202 
203  const char *CreateExportListExec = Args.MakeArgString(
204  path::parent_path(ToolChain.getDriver().ClangExecutable) +
205  "/llvm-nm");
206  ArgStringList CreateExportCmdArgs;
207 
208  std::string CreateExportListPath =
209  C.getDriver().GetTemporaryPath("CreateExportList", "exp");
210  const char *ExportList =
211  C.addTempFile(C.getArgs().MakeArgString(CreateExportListPath));
212 
213  for (const auto &II : Inputs)
214  if (II.isFilename())
215  CreateExportCmdArgs.push_back(II.getFilename());
216 
217  CreateExportCmdArgs.push_back("--export-symbols");
218  CreateExportCmdArgs.push_back("-X");
219  if (IsArch32Bit) {
220  CreateExportCmdArgs.push_back("32");
221  } else {
222  // Must be 64-bit, otherwise asserted already.
223  CreateExportCmdArgs.push_back("64");
224  }
225 
226  auto ExpCommand = std::make_unique<Command>(
227  JA, *this, ResponseFileSupport::None(), CreateExportListExec,
228  CreateExportCmdArgs, Inputs, Output);
229  ExpCommand->setRedirectFiles({None, std::string(ExportList), None});
230  C.addCommand(std::move(ExpCommand));
231  CmdArgs.push_back(Args.MakeArgString(llvm::Twine("-bE:") + ExportList));
232  }
233 
234  // Add directory to library search path.
235  Args.AddAllArgs(CmdArgs, options::OPT_L);
236  ToolChain.AddFilePathLibArgs(Args, CmdArgs);
237  ToolChain.addProfileRTLibs(Args, CmdArgs);
238 
239  if (getToolChain().ShouldLinkCXXStdlib(Args))
240  getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs);
241 
242  if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
243  AddRunTimeLibs(ToolChain, D, CmdArgs, Args);
244 
245  // Support POSIX threads if "-pthreads" or "-pthread" is present.
246  if (Args.hasArg(options::OPT_pthreads, options::OPT_pthread))
247  CmdArgs.push_back("-lpthreads");
248 
249  if (D.CCCIsCXX())
250  CmdArgs.push_back("-lm");
251 
252  CmdArgs.push_back("-lc");
253  }
254 
255  const char *Exec = Args.MakeArgString(ToolChain.GetLinkerPath());
256  C.addCommand(std::make_unique<Command>(JA, *this, ResponseFileSupport::None(),
257  Exec, CmdArgs, Inputs, Output));
258 }
259 
260 /// AIX - AIX tool chain which can call as(1) and ld(1) directly.
261 AIX::AIX(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
262  : ToolChain(D, Triple, Args) {
263  ParseInlineAsmUsingAsmParser = Args.hasFlag(
264  options::OPT_fintegrated_as, options::OPT_fno_integrated_as, true);
265  getLibraryPaths().push_back(getDriver().SysRoot + "/usr/lib");
266 }
267 
268 // Returns the effective header sysroot path to use.
269 // This comes from either -isysroot or --sysroot.
270 llvm::StringRef
271 AIX::GetHeaderSysroot(const llvm::opt::ArgList &DriverArgs) const {
272  if (DriverArgs.hasArg(options::OPT_isysroot))
273  return DriverArgs.getLastArgValue(options::OPT_isysroot);
274  if (!getDriver().SysRoot.empty())
275  return getDriver().SysRoot;
276  return "/";
277 }
278 
279 void AIX::AddClangSystemIncludeArgs(const ArgList &DriverArgs,
280  ArgStringList &CC1Args) const {
281  // Return if -nostdinc is specified as a driver option.
282  if (DriverArgs.hasArg(options::OPT_nostdinc))
283  return;
284 
285  llvm::StringRef Sysroot = GetHeaderSysroot(DriverArgs);
286  const Driver &D = getDriver();
287 
288  if (!DriverArgs.hasArg(options::OPT_nobuiltininc)) {
290  // Add the PowerPC intrinsic headers (<resource>/include/ppc_wrappers)
291  path::append(P, "include", "ppc_wrappers");
292  addSystemInclude(DriverArgs, CC1Args, P);
293  // Add the Clang builtin headers (<resource>/include)
294  addSystemInclude(DriverArgs, CC1Args, path::parent_path(P.str()));
295  }
296 
297  // Return if -nostdlibinc is specified as a driver option.
298  if (DriverArgs.hasArg(options::OPT_nostdlibinc))
299  return;
300 
301  // Add <sysroot>/usr/include.
302  SmallString<128> UP(Sysroot);
303  path::append(UP, "/usr/include");
304  addSystemInclude(DriverArgs, CC1Args, UP.str());
305 }
306 
308  const llvm::opt::ArgList &DriverArgs,
309  llvm::opt::ArgStringList &CC1Args) const {
310 
311  if (DriverArgs.hasArg(options::OPT_nostdinc) ||
312  DriverArgs.hasArg(options::OPT_nostdincxx) ||
313  DriverArgs.hasArg(options::OPT_nostdlibinc))
314  return;
315 
316  switch (GetCXXStdlibType(DriverArgs)) {
318  llvm::report_fatal_error(
319  "picking up libstdc++ headers is unimplemented on AIX");
320  case ToolChain::CST_Libcxx: {
321  llvm::StringRef Sysroot = GetHeaderSysroot(DriverArgs);
322  SmallString<128> PathCPP(Sysroot);
323  llvm::sys::path::append(PathCPP, "opt/IBM/openxlCSDK", "include", "c++",
324  "v1");
325  addSystemInclude(DriverArgs, CC1Args, PathCPP.str());
326  // Required in order to suppress conflicting C++ overloads in the system
327  // libc headers that were used by XL C++.
328  CC1Args.push_back("-D__LIBC_NO_CPP_MATH_OVERLOADS__");
329  return;
330  }
331  }
332 
333  llvm_unreachable("Unexpected C++ library type; only libc++ is supported.");
334 }
335 
336 void AIX::AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args,
337  llvm::opt::ArgStringList &CmdArgs) const {
338  switch (GetCXXStdlibType(Args)) {
340  llvm::report_fatal_error("linking libstdc++ unimplemented on AIX");
342  CmdArgs.push_back("-lc++");
343  if (Args.hasArg(options::OPT_fexperimental_library))
344  CmdArgs.push_back("-lc++experimental");
345  CmdArgs.push_back("-lc++abi");
346  return;
347  }
348 
349  llvm_unreachable("Unexpected C++ library type; only libc++ is supported.");
350 }
351 
352 void AIX::addProfileRTLibs(const llvm::opt::ArgList &Args,
353  llvm::opt::ArgStringList &CmdArgs) const {
354  // Add linker option -u__llvm_profile_runtime to cause runtime
355  // initialization to occur.
356  if (needsProfileRT(Args))
357  CmdArgs.push_back(Args.MakeArgString(
358  Twine("-u", llvm::getInstrProfRuntimeHookVarName())));
359  ToolChain::addProfileRTLibs(Args, CmdArgs);
360 }
361 
363  return ToolChain::CST_Libcxx;
364 }
365 
368 }
369 
370 auto AIX::buildAssembler() const -> Tool * { return new aix::Assembler(*this); }
371 
372 auto AIX::buildLinker() const -> Tool * { return new aix::Linker(*this); }
clang::driver::toolchains::AIX::buildAssembler
Tool * buildAssembler() const override
Definition: AIX.cpp:370
clang::driver::toolchains
Definition: AIX.h:55
string
string(SUBSTRING ${CMAKE_CURRENT_BINARY_DIR} 0 ${PATH_LIB_START} PATH_HEAD) string(SUBSTRING $
Definition: CMakeLists.txt:22
clang::driver::toolchains::AIX::AddCXXStdlibLibArgs
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: AIX.cpp:336
llvm::SmallVector
Definition: LLVM.h:38
clang::driver::ToolChain::needsProfileRT
static bool needsProfileRT(const llvm::opt::ArgList &Args)
needsProfileRT - returns true if instrumentation profile is on.
Definition: ToolChain.cpp:581
clang::driver::tools
Definition: AIX.h:17
clang::driver::ToolChain::getDriver
const Driver & getDriver() const
Definition: ToolChain.h:232
clang::driver::tools::aix::Assembler::ConstructJob
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: AIX.cpp:27
clang::driver::ToolChain::GetFilePath
std::string GetFilePath(const char *Name) const
Definition: ToolChain.cpp:610
clang::driver::tools::aix::Linker::ConstructJob
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: AIX.cpp:101
clang::driver::InputInfo
InputInfo - Wrapper for information about an input source.
Definition: InputInfo.h:22
clang::driver::ToolChain::RuntimeLibType
RuntimeLibType
Definition: ToolChain.h:100
clang::driver::tools::AddLinkerInputs
void AddLinkerInputs(const ToolChain &TC, const InputInfoList &Inputs, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs, const JobAction &JA)
clang::driver::Driver::getLTOMode
LTOKind getLTOMode(bool IsOffload=false) const
Get the specific kind of LTO being performed.
Definition: Driver.h:668
clang::driver::Tool
Tool - Information on a specific compilation tool.
Definition: Tool.h:32
clang::driver::tools::aix::Linker
Definition: AIX.h:34
Options.h
clang::driver::InputInfo::isFilename
bool isFilename() const
Definition: InputInfo.h:75
clang::driver::tools::aix::Assembler
Definition: AIX.h:22
clang::driver::LTOK_Thin
@ LTOK_Thin
Definition: Driver.h:59
llvm::opt
Definition: DiagnosticOptions.h:19
clang::driver::InputInfo::isNothing
bool isNothing() const
Definition: InputInfo.h:74
clang::driver::ToolChain::CXXStdlibType
CXXStdlibType
Definition: ToolChain.h:95
llvm::SmallString< 128 >
clang::driver::ToolChain::getTriple
const llvm::Triple & getTriple() const
Definition: ToolChain.h:234
clang::driver::Driver::SysRoot
std::string SysRoot
sysroot, if present
Definition: Driver.h:181
clang::driver::ToolChain::CST_Libcxx
@ CST_Libcxx
Definition: ToolChain.h:96
clang::driver::Driver::CCCIsCXX
bool CCCIsCXX() const
Whether the driver should follow g++ like behavior.
Definition: Driver.h:211
SanitizerArgs.h
clang::driver::ToolChain::CST_Libstdcxx
@ CST_Libstdcxx
Definition: ToolChain.h:97
clang::driver::Driver::ResourceDir
std::string ResourceDir
The path to the compiler resource directory.
Definition: Driver.h:165
clang::driver::ToolChain::AddFilePathLibArgs
void AddFilePathLibArgs(const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs) const
AddFilePathLibArgs - Add each thing in getFilePaths() as a "-L" option.
Definition: ToolChain.cpp:1039
clang::driver::toolchains::AIX::AIX
AIX(const Driver &D, const llvm::Triple &Triple, const llvm::opt::ArgList &Args)
AIX - AIX tool chain which can call as(1) and ld(1) directly.
Definition: AIX.cpp:261
clang::driver::tools::addLTOOptions
void addLTOOptions(const ToolChain &ToolChain, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs, const InputInfo &Output, const InputInfo &Input, bool IsThinLTO)
clang::driver::toolchains::AIX::GetDefaultRuntimeLibType
RuntimeLibType GetDefaultRuntimeLibType() const override
GetDefaultRuntimeLibType - Get the default runtime library variant to use.
Definition: AIX.cpp:366
P
StringRef P
Definition: ASTMatchersInternal.cpp:563
clang::driver::Driver::isUsingLTO
bool isUsingLTO(bool IsOffload=false) const
Returns true if we are performing any kind of LTO.
Definition: Driver.h:663
Compilation.h
clang::driver::toolchains::AIX::GetDefaultCXXStdlibType
CXXStdlibType GetDefaultCXXStdlibType() const override
Definition: AIX.cpp:362
clang::driver::ToolChain::addProfileRTLibs
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 ...
Definition: ToolChain.cpp:823
clang::driver::ToolChain
ToolChain - Access to tools for a single platform.
Definition: ToolChain.h:91
clang::driver::ToolChain::GetLinkerPath
std::string GetLinkerPath(bool *LinkerIsLLD=nullptr) const
Returns the linker path, respecting the -fuse-ld= argument to determine the linker suffix or name.
Definition: ToolChain.cpp:618
clang::driver::ToolChain::RLT_CompilerRT
@ RLT_CompilerRT
Definition: ToolChain.h:101
clang::driver::toolchains::AIX::buildLinker
Tool * buildLinker() const override
Definition: AIX.cpp:372
clang::driver::tools::AddRunTimeLibs
void AddRunTimeLibs(const ToolChain &TC, const Driver &D, llvm::opt::ArgStringList &CmdArgs, const llvm::opt::ArgList &Args)
clang::driver::ToolChain::getLibraryPaths
path_list & getLibraryPaths()
Definition: ToolChain.h:271
clang::driver::Compilation
Compilation - A set of tasks to perform for a single driver invocation.
Definition: Compilation.h:45
clang::driver::toolchains::AIX::addProfileRTLibs
void addProfileRTLibs(const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs) const override
addProfileRTLibs - When -fprofile-instr-profile is specified, try to pass a suitable profile runtime ...
Definition: AIX.cpp:352
hasExportListLinkerOpts
static bool hasExportListLinkerOpts(const ArgStringList &CmdArgs)
Definition: AIX.cpp:80
clang::driver::ToolChain::GetCXXStdlibType
virtual CXXStdlibType GetCXXStdlibType(const llvm::opt::ArgList &Args) const
Definition: ToolChain.cpp:893
clang::driver::InputInfo::getFilename
const char * getFilename() const
Definition: InputInfo.h:83
CommonArgs.h
clang::driver::Driver
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:75
clang::driver::toolchains::AIX::AddClangCXXStdlibIncludeArgs
void AddClangCXXStdlibIncludeArgs(const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args) const override
AddClangCXXStdlibIncludeArgs - Add the clang -cc1 level arguments to set the include paths to use for...
Definition: AIX.cpp:307
clang::driver::toolchains::AIX::AddClangSystemIncludeArgs
void AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args) const override
Add the clang cc1 arguments for system include paths.
Definition: AIX.cpp:279
clang::driver
Definition: Action.h:31
clang::driver::ResponseFileSupport::None
static constexpr ResponseFileSupport None()
Returns a ResponseFileSupport indicating that response files are not supported.
Definition: Job.h:78
clang::driver::ToolChain::addSystemInclude
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.
Definition: ToolChain.cpp:919
AIX
clang::driver::toolchains::AIX AIX
Definition: AIX.cpp:19
clang::driver::toolchains::AIX
Definition: AIX.h:57
clang::driver::JobAction
Definition: Action.h:398
PPC.h
clang::driver::Driver::ClangExecutable
std::string ClangExecutable
The original path to the clang executable.
Definition: Driver.h:156
AIX.h