clang 8.0.0

AVR.h
Go to the documentation of this file.
1 //===--- AVR.h - AVR Tool and 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_AVR_H
11 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_AVR_H
12
13 #include "Gnu.h"
14 #include "InputInfo.h"
15 #include "clang/Driver/ToolChain.h"
16 #include "clang/Driver/Tool.h"
17
18 namespace clang {
19 namespace driver {
20 namespace toolchains {
21
22 class LLVM_LIBRARY_VISIBILITY AVRToolChain : public Generic_ELF {
23 protected:
24 Tool *buildLinker() const override;
25 public:
26 AVRToolChain(const Driver &D, const llvm::Triple &Triple,
27 const llvm::opt::ArgList &Args);
28 };
29
30 } // end namespace toolchains
31
32 namespace tools {
33 namespace AVR {
34 class LLVM_LIBRARY_VISIBILITY Linker : public GnuTool {
35 public:
36 Linker(const ToolChain &TC) : GnuTool("AVR::Linker", "avr-ld", TC) {}
37 bool hasIntegratedCPP() const override { return false; }
38 bool isLinkJob() const override { return true; }
39 void ConstructJob(Compilation &C, const JobAction &JA,
40 const InputInfo &Output, const InputInfoList &Inputs,
41 const llvm::opt::ArgList &TCArgs,
42 const char *LinkingOutput) const override;
43 };
44 } // end namespace AVR
45 } // end namespace tools
46 } // end namespace driver
47 } // end namespace clang
48
49 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_AVR_H
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::tools::AVR::Linker
Definition: AVR.h:34
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::AVRToolChain
Definition: AVR.h:22
clang::driver::tools::AVR::Linker::hasIntegratedCPP
bool hasIntegratedCPP() const override
Definition: AVR.h:37
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
clang::driver::tools::AVR::Linker::Linker
Linker(const ToolChain &TC)
Definition: AVR.h:36
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
InputInfo.h
clang::driver::Compilation
Compilation - A set of tasks to perform for a single driver invocation.
Definition: Compilation.h:46
clang::driver::tools::AVR::Linker::isLinkJob
bool isLinkJob() const override
Definition: AVR.h:38
clang::driver::ToolChain
ToolChain - Access to tools for a single platform.
Definition: ToolChain.h:89