diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-01-25 21:03:58 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-01-25 21:03:58 +0000 |
commit | cf705b21e2fd2aa05a712942b65183e6cf56bc24 (patch) | |
tree | d7c9f1b17e5aa2331bca05a53bf22b57d4792814 | |
parent | 11c00fc7b2c7a6553312910b1e90cd7cfbcce0f7 (diff) | |
download | bcm5719-llvm-cf705b21e2fd2aa05a712942b65183e6cf56bc24.tar.gz bcm5719-llvm-cf705b21e2fd2aa05a712942b65183e6cf56bc24.zip |
Restore a tiny bit of functionality that I completely overlooked in the
Linux toolchain selection -- sorry folks. =] This should fix the Hexagon
toolchain.
However, I would point out that I see why my testing didn't catch this
-- we have no tests for Hexagon. ;]
llvm-svn: 148977
-rw-r--r-- | clang/lib/Driver/Driver.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index 6a4e0b3f759..7c26a0ef15f 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -1663,7 +1663,10 @@ const ToolChain &Driver::getToolChain(const ArgList &Args, TC = new toolchains::Minix(*this, Target); break; case llvm::Triple::Linux: - TC = new toolchains::Linux(*this, Target); + if (Target.getArch() == llvm::Triple::hexagon) + TC = new toolchains::Hexagon_TC(*this, Target); + else + TC = new toolchains::Linux(*this, Target); break; case llvm::Triple::Win32: TC = new toolchains::Windows(*this, Target); |