diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-07-07 16:01:42 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-07-07 16:01:42 +0000 |
| commit | 3e2ee147d0ddb23592b2ec8294381b5e1801cc62 (patch) | |
| tree | 034478169e2628b4396a64906e894d74e7241f0d /clang/lib/Driver/Tools.h | |
| parent | e784616fbbb223eaf5f54c10d9c900cb45dae382 (diff) | |
| download | bcm5719-llvm-3e2ee147d0ddb23592b2ec8294381b5e1801cc62.tar.gz bcm5719-llvm-3e2ee147d0ddb23592b2ec8294381b5e1801cc62.zip | |
add driver support for minix, patch by Kees van Reeuwijk
from PR7583
llvm-svn: 107788
Diffstat (limited to 'clang/lib/Driver/Tools.h')
| -rw-r--r-- | clang/lib/Driver/Tools.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.h b/clang/lib/Driver/Tools.h index 606007d2df6..2a181038996 100644 --- a/clang/lib/Driver/Tools.h +++ b/clang/lib/Driver/Tools.h @@ -377,6 +377,41 @@ namespace freebsd { }; } // end namespace freebsd + /// minix -- Directly call GNU Binutils assembler and linker +namespace minix { + class LLVM_LIBRARY_VISIBILITY Assemble : public Tool { + public: + Assemble(const ToolChain &TC) : Tool("minix::Assemble", "assembler", + TC) {} + + virtual bool acceptsPipedInput() const { return true; } + virtual bool canPipeOutput() const { return true; } + virtual bool hasIntegratedCPP() const { return false; } + + virtual void ConstructJob(Compilation &C, const JobAction &JA, + Job &Dest, + 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("minix::Link", "linker", TC) {} + + virtual bool acceptsPipedInput() const { return true; } + virtual bool canPipeOutput() const { return true; } + virtual bool hasIntegratedCPP() const { return false; } + + virtual void ConstructJob(Compilation &C, const JobAction &JA, + Job &Dest, + const InputInfo &Output, + const InputInfoList &Inputs, + const ArgList &TCArgs, + const char *LinkingOutput) const; + }; +} // end namespace minix + /// auroraux -- Directly call GNU Binutils assembler and linker namespace auroraux { class LLVM_LIBRARY_VISIBILITY Assemble : public Tool { |

