Hurd.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //===--- Hurd.h - Hurd 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_Hurd_H
  9. #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_Hurd_H
  10. #include "Gnu.h"
  11. #include "clang/Driver/ToolChain.h"
  12. namespace clang {
  13. namespace driver {
  14. namespace toolchains {
  15. class LLVM_LIBRARY_VISIBILITY Hurd : public Generic_ELF {
  16. public:
  17. Hurd(const Driver &D, const llvm::Triple &Triple,
  18. const llvm::opt::ArgList &Args);
  19. bool HasNativeLLVMSupport() const override;
  20. void
  21. AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs,
  22. llvm::opt::ArgStringList &CC1Args) const override;
  23. void
  24. addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
  25. llvm::opt::ArgStringList &CC1Args) const override;
  26. std::string getDynamicLinker(const llvm::opt::ArgList &Args) const override;
  27. void addExtraOpts(llvm::opt::ArgStringList &CmdArgs) const override;
  28. std::vector<std::string> ExtraOpts;
  29. protected:
  30. Tool *buildAssembler() const override;
  31. Tool *buildLinker() const override;
  32. std::string getMultiarchTriple(const Driver &D,
  33. const llvm::Triple &TargetTriple,
  34. StringRef SysRoot) const override;
  35. };
  36. } // end namespace toolchains
  37. } // end namespace driver
  38. } // end namespace clang
  39. #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_Hurd_H