clang  6.0.0svn
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
InputInfo - Wrapper for information about an input source.
Definition: InputInfo.h:23
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:65
bool hasIntegratedCPP() const override
Definition: AVR.h:37
Base class for all GNU tools that provide the same behavior when it comes to response files support...
Definition: Gnu.h:41
Linker(const ToolChain &TC)
Definition: AVR.h:36
Dataflow Directional Tag Classes.
Tool - Information on a specific compilation tool.
Definition: Tool.h:34
Compilation - A set of tasks to perform for a single driver invocation.
Definition: Compilation.h:34
bool isLinkJob() const override
Definition: AVR.h:38
ToolChain - Access to tools for a single platform.
Definition: ToolChain.h:73