clang 8.0.0

Solaris.h
Go to the documentation of this file.
1 //===--- Solaris.h - Solaris 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_SOLARIS_H
11 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_SOLARIS_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 /// solaris -- Directly call Solaris assembler and linker
22 namespace solaris {
23 class LLVM_LIBRARY_VISIBILITY Assembler : public Tool {
24 public:
25 Assembler(const ToolChain &TC)
26 : Tool("solaris::Assembler", "assembler", TC) {}
27
28 bool hasIntegratedCPP() const override { return false; }
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
36 class LLVM_LIBRARY_VISIBILITY Linker : public Tool {
37 public:
38 Linker(const ToolChain &TC) : Tool("solaris::Linker", "linker", TC) {}
39
40 bool hasIntegratedCPP() const override { return false; }
41 bool isLinkJob() const override { return true; }
42
43 void ConstructJob(Compilation &C, const JobAction &JA,
44 const InputInfo &Output, const InputInfoList &Inputs,
45 const llvm::opt::ArgList &TCArgs,
46 const char *LinkingOutput) const override;
47 };
48 } // end namespace solaris
49 } // end namespace tools
50
51 namespace toolchains {
52
53 class LLVM_LIBRARY_VISIBILITY Solaris : public Generic_ELF {
54 public:
55 Solaris(const Driver &D, const llvm::Triple &Triple,
56 const llvm::opt::ArgList &Args);
57
58 void
59 AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs,
60 llvm::opt::ArgStringList &CC1Args) const override;
61
62 void
63 addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
64 llvm::opt::ArgStringList &CC1Args) const override;
65
66 SanitizerMask getSupportedSanitizers() const override;
67 unsigned GetDefaultDwarfVersion() const override { return 2; }
68
69 protected:
70 Tool *buildAssembler() const override;
71 Tool *buildLinker() const override;
72 };
73
74 } // end namespace toolchains
75 } // end namespace driver
76 } // end namespace clang
77
78 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_SOLARIS_H
clang::driver::toolchains::Solaris::GetDefaultDwarfVersion
unsigned GetDefaultDwarfVersion() const override
Definition: Solaris.h:67
Tool.h
clang::driver::JobAction
Definition: Action.h:374
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::solaris::Assembler
Definition: Solaris.h:23
clang::driver::toolchains::Solaris
Definition: Solaris.h:53
clang::driver::toolchains::Generic_ELF
Definition: Gnu.h:340
clang::driver::tools::solaris::Assembler::hasIntegratedCPP
bool hasIntegratedCPP() const override
Definition: Solaris.h:28
clang::driver::tools::solaris::Linker
Definition: Solaris.h:36
ToolChain.h
llvm::SmallVector
Definition: LLVM.h:36
clang::driver::tools::solaris::Assembler::Assembler
Assembler(const ToolChain &TC)
Definition: Solaris.h:25
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::tools::solaris::Linker::Linker
Linker(const ToolChain &TC)
Definition: Solaris.h:38
clang::driver::Compilation
Compilation - A set of tasks to perform for a single driver invocation.
Definition: Compilation.h:46
clang::driver::tools::solaris::Linker::isLinkJob
bool isLinkJob() const override
Definition: Solaris.h:41
clang::driver::tools::solaris::Linker::hasIntegratedCPP
bool hasIntegratedCPP() const override
Definition: Solaris.h:40
clang::driver::ToolChain
ToolChain - Access to tools for a single platform.
Definition: ToolChain.h:89