clang  12.0.0git
Hurd.h
Go to the documentation of this file.
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 
9 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_Hurd_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_Hurd_H
11 
12 #include "Gnu.h"
13 #include "clang/Driver/ToolChain.h"
14 
15 namespace clang {
16 namespace driver {
17 namespace toolchains {
18 
19 class LLVM_LIBRARY_VISIBILITY Hurd : public Generic_ELF {
20 public:
21  Hurd(const Driver &D, const llvm::Triple &Triple,
22  const llvm::opt::ArgList &Args);
23 
24  bool HasNativeLLVMSupport() const override;
25 
26  void
27  AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs,
28  llvm::opt::ArgStringList &CC1Args) const override;
29 
30  std::string getDynamicLinker(const llvm::opt::ArgList &Args) const override;
31 
32  void addExtraOpts(llvm::opt::ArgStringList &CmdArgs) const override;
33 
34  std::vector<std::string> ExtraOpts;
35 
36 protected:
37  Tool *buildAssembler() const override;
38  Tool *buildLinker() const override;
39 
40  std::string getMultiarchTriple(const Driver &D,
41  const llvm::Triple &TargetTriple,
42  StringRef SysRoot) const override;
43 };
44 
45 } // end namespace toolchains
46 } // end namespace driver
47 } // end namespace clang
48 
49 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_Hurd_H
std::vector< std::string > ExtraOpts
Definition: Hurd.h:34
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:59
static std::string getMultiarchTriple(const Driver &D, const llvm::Triple &TargetTriple, StringRef SysRoot)
Following the conventions in https://wiki.debian.org/Multiarch/Tuples, we remove the vendor field to ...
Definition: WebAssembly.cpp:29
Dataflow Directional Tag Classes.
Tool - Information on a specific compilation tool.
Definition: Tool.h:32