]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/clang/lib/Driver/ToolChains/AVR.h
Import libxo-0.9.0:
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / clang / lib / Driver / ToolChains / AVR.h
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