clang
15.0.0git
lib
Driver
ToolChains
PPCFreeBSD.cpp
Go to the documentation of this file.
1
//===-- PPCFreeBSD.cpp - PowerPC 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 "
PPCFreeBSD.h
"
10
#include "
clang/Driver/Driver.h
"
11
#include "
clang/Driver/Options.h
"
12
#include "llvm/Support/Path.h"
13
14
using namespace
clang::driver::toolchains
;
15
using namespace
llvm::opt
;
16
17
void
PPCFreeBSDToolChain::AddClangSystemIncludeArgs
(
18
const
ArgList &DriverArgs, ArgStringList &CC1Args)
const
{
19
if
(!DriverArgs.hasArg(clang::driver::options::OPT_nostdinc) &&
20
!DriverArgs.hasArg(options::OPT_nobuiltininc)) {
21
const
Driver
&D = getDriver();
22
SmallString<128>
P
(D.
ResourceDir
);
23
llvm::sys::path::append(
P
,
"include"
,
"ppc_wrappers"
);
24
addSystemInclude(DriverArgs, CC1Args,
P
);
25
}
26
27
FreeBSD::AddClangSystemIncludeArgs
(DriverArgs, CC1Args);
28
}
clang::driver::toolchains
Definition:
AIX.h:55
Driver.h
PPCFreeBSD.h
Options.h
llvm::opt
Definition:
DiagnosticOptions.h:19
clang::driver::ToolChain::AddClangSystemIncludeArgs
virtual void AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args) const
Add the clang cc1 arguments for system include paths.
Definition:
ToolChain.cpp:799
llvm::SmallString< 128 >
clang::driver::Driver::ResourceDir
std::string ResourceDir
The path to the compiler resource directory.
Definition:
Driver.h:162
P
StringRef P
Definition:
ASTMatchersInternal.cpp:563
clang::driver::toolchains::PPCFreeBSDToolChain::AddClangSystemIncludeArgs
void AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args) const override
Add the clang cc1 arguments for system include paths.
Definition:
PPCFreeBSD.cpp:17
clang::driver::Driver
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition:
Driver.h:72
Generated on Tue Jul 5 2022 13:51:59 for clang by
1.8.17