clang 8.0.0

Haiku.cpp
Go to the documentation of this file.
1 //===--- Haiku.cpp - Haiku ToolChain Implementations ------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #include "Haiku.h"
11 #include "CommonArgs.h"
12
13 using namespace clang::driver;
14 using namespace clang::driver::toolchains;
15 using namespace clang;
16 using namespace llvm::opt;
17
18 /// Haiku - Haiku tool chain which can call as(1) and ld(1) directly.
19
20 Haiku::Haiku(const Driver &D, const llvm::Triple& Triple, const ArgList &Args)
21 : Generic_ELF(D, Triple, Args) {
22
23 }
24
25 void Haiku::addLibCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
26 llvm::opt::ArgStringList &CC1Args) const {
27 addSystemInclude(DriverArgs, CC1Args,
28 getDriver().SysRoot + "/system/develop/headers/c++/v1");
29 }
30
31 void Haiku::addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
32 llvm::opt::ArgStringList &CC1Args) const {
33 addLibStdCXXIncludePaths(getDriver().SysRoot, "/system/develop/headers/c++",
34 getTriple().str(), "", "", "", DriverArgs, CC1Args);
35 }
clang::driver::toolchains::Haiku::addLibCxxIncludePaths
void addLibCxxIncludePaths(const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args) const override
Definition: Haiku.cpp:25
CommonArgs.h
clang::driver::Driver
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:58
clang::driver::toolchains::Haiku::addLibStdCxxIncludePaths
void addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args) const override
Definition: Haiku.cpp:31
llvm::str
return Out str()
clang::driver::toolchains::Generic_ELF
Definition: Gnu.h:340
llvm::opt
Definition: Action.h:24
clang::driver::ToolChain::getDriver
const Driver & getDriver() const
Definition: ToolChain.h:186
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:702
clang
Dataflow Directional Tag Classes.
Definition: CFGReachabilityAnalysis.h:22
clang::driver::ToolChain::getTriple
const llvm::Triple & getTriple() const
Definition: ToolChain.h:188
clang::driver
Definition: Action.h:32
Haiku.h
clang::driver::toolchains
Definition: AMDGPU.h:41
clang::driver::toolchains::Generic_GCC::addLibStdCXXIncludePaths
bool addLibStdCXXIncludePaths(Twine Base, Twine Suffix, StringRef GCCTriple, StringRef GCCMultiarchTriple, StringRef TargetMultiarchTriple, Twine IncludeSuffix, const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args) const
Helper to add the variant paths of a libstdc++ installation.
Definition: Gnu.cpp:2556
clang::driver::toolchains::Haiku::Haiku
Haiku(const Driver &D, const llvm::Triple &Triple, const llvm::opt::ArgList &Args)
Haiku - Haiku tool chain which can call as(1) and ld(1) directly.
Definition: Haiku.cpp:20