clang 8.0.0

CloudABI.h
Go to the documentation of this file.
1 //===--- CloudABI.h - CloudABI 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_CLOUDABI_H
11 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_CLOUDABI_H
12
13 #include "Gnu.h"
14 #include "clang/Driver/Tool.h"
15 #include "clang/Driver/ToolChain.h"
16
17 namespace clang {
18 namespace driver {
19 namespace tools {
20
21 /// cloudabi -- Directly call GNU Binutils linker
22 namespace cloudabi {
23 class LLVM_LIBRARY_VISIBILITY Linker : public GnuTool {
24 public:
25 Linker(const ToolChain &TC) : GnuTool("cloudabi::Linker", "linker", TC) {}
26
27 bool hasIntegratedCPP() const override { return false; }
28 bool isLinkJob() const override { return true; }
29
30 void ConstructJob(Compilation &C, const JobAction &JA,
31 const InputInfo &Output, const InputInfoList &Inputs,
32 const llvm::opt::ArgList &TCArgs,
33 const char *LinkingOutput) const override;
34 };
35 } // end namespace cloudabi
36 } // end namespace tools
37
38 namespace toolchains {
39
40 class LLVM_LIBRARY_VISIBILITY CloudABI : public Generic_ELF {
41 public:
42 CloudABI(const Driver &D, const llvm::Triple &Triple,
43 const llvm::opt::ArgList &Args);
44 bool HasNativeLLVMSupport() const override { return true; }
45
46 bool IsMathErrnoDefault() const override { return false; }
47 bool IsObjCNonFragileABIDefault() const override { return true; }
48
49 CXXStdlibType
50 GetCXXStdlibType(const llvm::opt::ArgList &Args) const override {
51 return ToolChain::CST_Libcxx;
52 }
53 void addLibCxxIncludePaths(
54 const llvm::opt::ArgList &DriverArgs,
55 llvm::opt::ArgStringList &CC1Args) const override;
56 void AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args,
57 llvm::opt::ArgStringList &CmdArgs) const override;
58
59 bool isPIEDefault() const override;
60 SanitizerMask getSupportedSanitizers() const override;
61 SanitizerMask getDefaultSanitizers() const override;
62
63 protected:
64 Tool *buildLinker() const override;
65 };
66
67 } // end namespace toolchains
68 } // end namespace driver
69 } // end namespace clang
70
71 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_CLOUDABI_H
clang::driver::toolchains::CloudABI::IsMathErrnoDefault
bool IsMathErrnoDefault() const override
IsMathErrnoDefault - Does this tool chain use -fmath-errno by default.
Definition: CloudABI.h:46
Tool.h
clang::driver::tools::cloudabi::Linker::isLinkJob
bool isLinkJob() const override
Definition: CloudABI.h:28
clang::driver::tools::cloudabi::Linker::hasIntegratedCPP
bool hasIntegratedCPP() const override
Definition: CloudABI.h:27
clang::driver::ToolChain::CXXStdlibType
CXXStdlibType
Definition: ToolChain.h:93
clang::driver::toolchains::CloudABI::IsObjCNonFragileABIDefault
bool IsObjCNonFragileABIDefault() const override
IsObjCNonFragileABIDefault - Does this tool chain set -fobjc-nonfragile-abi by default.
Definition: CloudABI.h:47
clang::driver::JobAction
Definition: Action.h:374
clang::driver::ToolChain::CST_Libcxx
Definition: ToolChain.h:94
clang::driver::InputInfo
InputInfo - Wrapper for information about an input source.
Definition: InputInfo.h:23
clang::driver::Driver
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:58
clang::driver::tools::cloudabi::Linker
Definition: CloudABI.h:23
clang::driver::toolchains::Generic_ELF
Definition: Gnu.h:340
clang::driver::toolchains::CloudABI::GetCXXStdlibType
CXXStdlibType GetCXXStdlibType(const llvm::opt::ArgList &Args) const override
Definition: CloudABI.h:50
clang::driver::toolchains::CloudABI::HasNativeLLVMSupport
bool HasNativeLLVMSupport() const override
HasNativeLTOLinker - Check whether the linker and related tools have native LLVM support.
Definition: CloudABI.h:44
clang::driver::tools::GnuTool
Base class for all GNU tools that provide the same behavior when it comes to response files support...
Definition: Gnu.h:41
ToolChain.h
llvm::SmallVector
Definition: LLVM.h:36
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::Compilation
Compilation - A set of tasks to perform for a single driver invocation.
Definition: Compilation.h:46
clang::driver::toolchains::CloudABI
Definition: CloudABI.h:40
clang::driver::tools::cloudabi::Linker::Linker
Linker(const ToolChain &TC)
Definition: CloudABI.h:25
clang::driver::ToolChain
ToolChain - Access to tools for a single platform.
Definition: ToolChain.h:89