clang 10.0.0git

Linux.h
Go to the documentation of this file.
1 //===--- Linux.h - Linux 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_LINUX_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_LINUX_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 Linux : public Generic_ELF {
20 public:
21 Linux(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 void addLibStdCxxIncludePaths(
30 const llvm::opt::ArgList &DriverArgs,
31 llvm::opt::ArgStringList &CC1Args) const override;
32 void AddCudaIncludeArgs(const llvm::opt::ArgList &DriverArgs,
33 llvm::opt::ArgStringList &CC1Args) const override;
34 void AddIAMCUIncludeArgs(const llvm::opt::ArgList &DriverArgs,
35 llvm::opt::ArgStringList &CC1Args) const override;
36 CXXStdlibType GetDefaultCXXStdlibType() const override;
37 bool isPIEDefault() const override;
38 bool isNoExecStackDefault() const override;
39 bool IsMathErrnoDefault() const override;
40 SanitizerMask getSupportedSanitizers() const override;
41 void addProfileRTLibs(const llvm::opt::ArgList &Args,
42 llvm::opt::ArgStringList &CmdArgs) const override;
43 virtual std::string computeSysRoot() const;
44
45 virtual std::string getDynamicLinker(const llvm::opt::ArgList &Args) const;
46
47 std::vector<std::string> ExtraOpts;
48
49 protected:
50 Tool *buildAssembler() const override;
51 Tool *buildLinker() const override;
52
53 std::string getMultiarchTriple(const Driver &D,
54 const llvm::Triple &TargetTriple,
55 StringRef SysRoot) const override;
56 };
57
58 } // end namespace toolchains
59 } // end namespace driver
60 } // end namespace clang
61
62 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_LINUX_H
clang::driver::ToolChain::CXXStdlibType
CXXStdlibType
Definition: ToolChain.h:92
clang::driver::Driver
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:59
clang::driver::toolchains::Generic_ELF
Definition: Gnu.h:348
clang::driver::toolchains::Linux
Definition: Linux.h:19
ToolChain.h
getMultiarchTriple
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
clang::SanitizerMask
Definition: Sanitizers.h:29
Gnu.h
clang
Dataflow Directional Tag Classes.
Definition: CFGReachabilityAnalysis.h:21
clang::driver::Tool
Tool - Information on a specific compilation tool.
Definition: Tool.h:33
clang::driver::toolchains::Linux::ExtraOpts
std::vector< std::string > ExtraOpts
Definition: Linux.h:47