diff options
author | Filipe Cabecinhas <me@filcab.net> | 2015-10-14 12:25:43 +0000 |
---|---|---|
committer | Filipe Cabecinhas <me@filcab.net> | 2015-10-14 12:25:43 +0000 |
commit | c888e190ba51783109182fcda6d670497730e7c1 (patch) | |
tree | 475b43e11cbeab3e7177e90f3ef80bb25495b8a5 /clang/lib/Driver/Tools.h | |
parent | bd716ab08c56975346b6f5b7209b632eb81512eb (diff) | |
download | bcm5719-llvm-c888e190ba51783109182fcda6d670497730e7c1.tar.gz bcm5719-llvm-c888e190ba51783109182fcda6d670497730e7c1.zip |
Bring back r250262: PS4 toolchain
There was a minor problem with a test. Sorry for the noise yesterday.
This patch adds missing pieces to clang, including the PS4 toolchain
definition, added warnings, PS4 defaults, and Driver changes needed for
our compiler.
A patch by Filipe Cabecinhas, Pierre Gousseau and Katya Romanova!
Differential Revision: http://reviews.llvm.org/D13482
llvm-svn: 250293
Diffstat (limited to 'clang/lib/Driver/Tools.h')
-rw-r--r-- | clang/lib/Driver/Tools.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.h b/clang/lib/Driver/Tools.h index bc10171d52c..be306e358fa 100644 --- a/clang/lib/Driver/Tools.h +++ b/clang/lib/Driver/Tools.h @@ -831,6 +831,36 @@ public: }; } // end namespace Myriad +namespace PS4cpu { +class LLVM_LIBRARY_VISIBILITY Assemble : public Tool { +public: + Assemble(const ToolChain &TC) + : Tool("PS4cpu::Assemble", "assembler", TC, RF_Full) {} + + virtual bool hasIntegratedCPP() const { return false; } + + virtual void ConstructJob(Compilation &C, const JobAction &JA, + const InputInfo &Output, + const InputInfoList &Inputs, + const llvm::opt::ArgList &TCArgs, + const char *LinkingOutput) const; +}; + +class LLVM_LIBRARY_VISIBILITY Link : public Tool { +public: + Link(const ToolChain &TC) : Tool("PS4cpu::Link", "linker", TC, RF_Full) {} + + virtual bool hasIntegratedCPP() const { return false; } + virtual bool isLinkJob() const { return true; } + + virtual void ConstructJob(Compilation &C, const JobAction &JA, + const InputInfo &Output, + const InputInfoList &Inputs, + const llvm::opt::ArgList &TCArgs, + const char *LinkingOutput) const; +}; +} // end namespace PS4cpu + } // end namespace tools } // end namespace driver } // end namespace clang |