Haiku.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //===--- Haiku.h - 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. #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HAIKU_H
  9. #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HAIKU_H
  10. #include "Gnu.h"
  11. #include "clang/Driver/Driver.h"
  12. #include "clang/Driver/ToolChain.h"
  13. namespace clang {
  14. namespace driver {
  15. namespace toolchains {
  16. class LLVM_LIBRARY_VISIBILITY Haiku : public Generic_ELF {
  17. public:
  18. Haiku(const Driver &D, const llvm::Triple &Triple,
  19. const llvm::opt::ArgList &Args);
  20. bool isPIEDefault(const llvm::opt::ArgList &Args) const override {
  21. return getTriple().getArch() == llvm::Triple::x86_64;
  22. }
  23. void addLibCxxIncludePaths(
  24. const llvm::opt::ArgList &DriverArgs,
  25. llvm::opt::ArgStringList &CC1Args) const override;
  26. void addLibStdCxxIncludePaths(
  27. const llvm::opt::ArgList &DriverArgs,
  28. llvm::opt::ArgStringList &CC1Args) const override;
  29. };
  30. } // end namespace toolchains
  31. } // end namespace driver
  32. } // end namespace clang
  33. #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HAIKU_H