1 //===--- Haiku.h - Haiku ToolChain Implementations --------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HAIKU_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HAIKU_H
13 #include "clang/Driver/Driver.h"
14 #include "clang/Driver/ToolChain.h"
18 namespace toolchains
{
20 class LLVM_LIBRARY_VISIBILITY Haiku
: public Generic_ELF
{
22 Haiku(const Driver
&D
, const llvm::Triple
&Triple
,
23 const llvm::opt::ArgList
&Args
);
25 bool isPIEDefault(const llvm::opt::ArgList
&Args
) const override
{
26 return getTriple().getArch() == llvm::Triple::x86_64
;
29 void addLibCxxIncludePaths(
30 const llvm::opt::ArgList
&DriverArgs
,
31 llvm::opt::ArgStringList
&CC1Args
) const override
;
32 void addLibStdCxxIncludePaths(
33 const llvm::opt::ArgList
&DriverArgs
,
34 llvm::opt::ArgStringList
&CC1Args
) const override
;
37 } // end namespace toolchains
38 } // end namespace driver
39 } // end namespace clang
41 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HAIKU_H