xref: /netbsd-src/external/apache2/llvm/dist/clang/lib/Driver/ToolChains/Hurd.h (revision e038c9c4676b0f19b1b7dd08a940c6ed64a6d5ae)
17330f729Sjoerg //===--- Hurd.h - Hurd ToolChain Implementations ----------*- C++ -*-===//
27330f729Sjoerg //
37330f729Sjoerg // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
47330f729Sjoerg // See https://llvm.org/LICENSE.txt for license information.
57330f729Sjoerg // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
67330f729Sjoerg //
77330f729Sjoerg //===----------------------------------------------------------------------===//
87330f729Sjoerg 
97330f729Sjoerg #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_Hurd_H
107330f729Sjoerg #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_Hurd_H
117330f729Sjoerg 
127330f729Sjoerg #include "Gnu.h"
137330f729Sjoerg #include "clang/Driver/ToolChain.h"
147330f729Sjoerg 
157330f729Sjoerg namespace clang {
167330f729Sjoerg namespace driver {
177330f729Sjoerg namespace toolchains {
187330f729Sjoerg 
197330f729Sjoerg class LLVM_LIBRARY_VISIBILITY Hurd : public Generic_ELF {
207330f729Sjoerg public:
217330f729Sjoerg   Hurd(const Driver &D, const llvm::Triple &Triple,
227330f729Sjoerg        const llvm::opt::ArgList &Args);
237330f729Sjoerg 
247330f729Sjoerg   bool HasNativeLLVMSupport() const override;
257330f729Sjoerg 
267330f729Sjoerg   void
277330f729Sjoerg   AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs,
287330f729Sjoerg                             llvm::opt::ArgStringList &CC1Args) const override;
29*e038c9c4Sjoerg   void
30*e038c9c4Sjoerg   addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
31*e038c9c4Sjoerg                            llvm::opt::ArgStringList &CC1Args) const override;
327330f729Sjoerg 
33*e038c9c4Sjoerg   std::string getDynamicLinker(const llvm::opt::ArgList &Args) const override;
347330f729Sjoerg 
35*e038c9c4Sjoerg   void addExtraOpts(llvm::opt::ArgStringList &CmdArgs) const override;
367330f729Sjoerg 
377330f729Sjoerg   std::vector<std::string> ExtraOpts;
387330f729Sjoerg 
397330f729Sjoerg protected:
407330f729Sjoerg   Tool *buildAssembler() const override;
417330f729Sjoerg   Tool *buildLinker() const override;
42*e038c9c4Sjoerg 
43*e038c9c4Sjoerg   std::string getMultiarchTriple(const Driver &D,
44*e038c9c4Sjoerg                                  const llvm::Triple &TargetTriple,
45*e038c9c4Sjoerg                                  StringRef SysRoot) const override;
467330f729Sjoerg };
477330f729Sjoerg 
487330f729Sjoerg } // end namespace toolchains
497330f729Sjoerg } // end namespace driver
507330f729Sjoerg } // end namespace clang
517330f729Sjoerg 
527330f729Sjoerg #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_Hurd_H
53