clang  6.0.0svn
Haiku.h
Go to the documentation of this file.
1 //===--- Haiku.h - 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 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HAIKU_H
11 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HAIKU_H
12 
13 #include "Gnu.h"
14 #include "clang/Driver/Driver.h"
15 #include "clang/Driver/ToolChain.h"
16 
17 namespace clang {
18 namespace driver {
19 namespace toolchains {
20 
21 class LLVM_LIBRARY_VISIBILITY Haiku : public Generic_ELF {
22 public:
23  Haiku(const Driver &D, const llvm::Triple &Triple,
24  const llvm::opt::ArgList &Args);
25 
26  bool isPIEDefault() const override {
27  return getTriple().getArch() == llvm::Triple::x86_64;
28  }
29 
30  std::string findLibCxxIncludePath() const override;
31  void addLibStdCxxIncludePaths(
32  const llvm::opt::ArgList &DriverArgs,
33  llvm::opt::ArgStringList &CC1Args) const override;
34 };
35 
36 } // end namespace toolchains
37 } // end namespace driver
38 } // end namespace clang
39 
40 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HAIKU_H
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:65
Dataflow Directional Tag Classes.
bool isPIEDefault() const override
Test whether this toolchain defaults to PIE.
Definition: Haiku.h:26