diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-02-02 18:59:27 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-02-02 18:59:27 +0000 |
| commit | 24f1d3e60a43b17bfcc612196814a137ceb6821b (patch) | |
| tree | 05f00838b9b6b9e5303a60523fbd6e068834c504 /clang/lib/Driver/Tools.h | |
| parent | 83b797f490c0b8c65a5b560c65aeb4bc0780907f (diff) | |
| download | bcm5719-llvm-24f1d3e60a43b17bfcc612196814a137ceb6821b.tar.gz bcm5719-llvm-24f1d3e60a43b17bfcc612196814a137ceb6821b.zip | |
Add NetBSD target support. Patch by Joerg Sonnenberger.
llvm-svn: 124736
Diffstat (limited to 'clang/lib/Driver/Tools.h')
| -rw-r--r-- | clang/lib/Driver/Tools.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.h b/clang/lib/Driver/Tools.h index 782aa4867cd..10c88390093 100644 --- a/clang/lib/Driver/Tools.h +++ b/clang/lib/Driver/Tools.h @@ -334,6 +334,35 @@ namespace freebsd { }; } // end namespace freebsd + /// netbsd -- Directly call GNU Binutils assembler and linker +namespace netbsd { + class LLVM_LIBRARY_VISIBILITY Assemble : public Tool { + public: + Assemble(const ToolChain &TC) : Tool("netbsd::Assemble", "assembler", + TC) {} + + virtual bool hasIntegratedCPP() const { return false; } + + virtual void ConstructJob(Compilation &C, const JobAction &JA, + const InputInfo &Output, + const InputInfoList &Inputs, + const ArgList &TCArgs, + const char *LinkingOutput) const; + }; + class LLVM_LIBRARY_VISIBILITY Link : public Tool { + public: + Link(const ToolChain &TC) : Tool("netbsd::Link", "linker", TC) {} + + virtual bool hasIntegratedCPP() const { return false; } + + virtual void ConstructJob(Compilation &C, const JobAction &JA, + const InputInfo &Output, + const InputInfoList &Inputs, + const ArgList &TCArgs, + const char *LinkingOutput) const; + }; +} // end namespace netbsd + /// linux -- Directly call GNU Binutils assembler and linker namespace linuxtools { class LLVM_LIBRARY_VISIBILITY Assemble : public Tool { |

