clang 10.0.0git

Haiku.cpp
Go to the documentation of this file.
1 //===--- Haiku.cpp - Haiku 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 "Haiku.h"
10 #include "CommonArgs.h"
11
12 using namespace clang::driver;
13 using namespace clang::driver::toolchains;
14 using namespace clang;
15 using namespace llvm::opt;
16
17 /// Haiku - Haiku tool chain which can call as(1) and ld(1) directly.
18
19 Haiku::Haiku(const Driver &D, const llvm::Triple& Triple, const ArgList &Args)
20 : Generic_ELF(D, Triple, Args) {
21
22 }
23
24 void Haiku::addLibCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
25 llvm::opt::ArgStringList &CC1Args) const {
26 addSystemInclude(DriverArgs, CC1Args,
27 getDriver().SysRoot + "/system/develop/headers/c++/v1");
28 }
29
30 void Haiku::addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
31 llvm::opt::ArgStringList &CC1Args) const {
32 addLibStdCXXIncludePaths(getDriver().SysRoot, "/system/develop/headers/c++",
33 getTriple().str(), "", "", "", DriverArgs, CC1Args);
34 }
clang::driver::toolchains::Haiku::addLibCxxIncludePaths
void addLibCxxIncludePaths(const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args) const override
Definition: Haiku.cpp:24
CommonArgs.h
clang::driver::Driver
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:59
clang::driver::toolchains::Haiku::addLibStdCxxIncludePaths
void addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args) const override
Definition: Haiku.cpp:30
clang::driver::toolchains::Generic_ELF
Definition: Gnu.h:348
llvm::opt
Definition: Action.h:23
clang::driver::ToolChain::getDriver
const Driver & getDriver() const
Definition: ToolChain.h:199
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:820
clang
Dataflow Directional Tag Classes.
Definition: CFGReachabilityAnalysis.h:21
clang::driver::ToolChain::getTriple
const llvm::Triple & getTriple() const
Definition: ToolChain.h:201
clang::driver
Definition: Action.h:31
Haiku.h
clang::driver::toolchains
Definition: AIX.h:55
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:2732
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:19