clang 8.0.0

Linux.h
Go to the documentation of this file.
1 //===--- Linux.h - Linux ToolChain Implementations --------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_LINUX_H
11 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_LINUX_H
12
13 #include "Gnu.h"
14 #include "clang/Driver/ToolChain.h"
15
16 namespace clang {
17 namespace driver {
18 namespace toolchains {
19
20 class LLVM_LIBRARY_VISIBILITY Linux : public Generic_ELF {
21 public:
22 Linux(const Driver &D, const llvm::Triple &Triple,
23 const llvm::opt::ArgList &Args);
24
25 bool HasNativeLLVMSupport() const override;
26
27 void
28 AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs,
29 llvm::opt::ArgStringList &CC1Args) const override;
30 void addLibCxxIncludePaths(
31 const llvm::opt::ArgList &DriverArgs,
32 llvm::opt::ArgStringList &CC1Args) const override;
33 void addLibStdCxxIncludePaths(
34 const llvm::opt::ArgList &DriverArgs,
35 llvm::opt::ArgStringList &CC1Args) const override;
36 void AddCudaIncludeArgs(const llvm::opt::ArgList &DriverArgs,
37 llvm::opt::ArgStringList &CC1Args) const override;
38 void AddIAMCUIncludeArgs(const llvm::opt::ArgList &DriverArgs,
39 llvm::opt::ArgStringList &CC1Args) const override;
40 CXXStdlibType GetDefaultCXXStdlibType() const override;
41 bool isPIEDefault() const override;
42 bool IsMathErrnoDefault() const override;
43 SanitizerMask getSupportedSanitizers() const override;
44 void addProfileRTLibs(const llvm::opt::ArgList &Args,
45 llvm::opt::ArgStringList &CmdArgs) const override;
46 virtual std::string computeSysRoot() const;
47
48 virtual std::string getDynamicLinker(const llvm::opt::ArgList &Args) const;
49
50 std::vector<std::string> ExtraOpts;
51
52 protected:
53 Tool *buildAssembler() const override;
54 Tool *buildLinker() const override;
55 };
56
57 } // end namespace toolchains
58 } // end namespace driver
59 } // end namespace clang
60
61 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_LINUX_H
clang::driver::ToolChain::CXXStdlibType
CXXStdlibType
Definition: ToolChain.h:93
clang::driver::Driver
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:58
clang::driver::toolchains::Generic_ELF
Definition: Gnu.h:340
clang::driver::toolchains::Linux
Definition: Linux.h:20
ToolChain.h
Gnu.h
clang
Dataflow Directional Tag Classes.
Definition: CFGReachabilityAnalysis.h:22
clang::driver::Tool
Tool - Information on a specific compilation tool.
Definition: Tool.h:34
clang::SanitizerMask
uint64_t SanitizerMask
Definition: Sanitizers.h:26
clang::driver::toolchains::Linux::ExtraOpts
std::vector< std::string > ExtraOpts
Definition: Linux.h:50