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 | 1621e75dc4049e7b82bf81f4eb739a99f91bd3d8 (patch) | |
tree | 66b260784983b12de727a6141757eca2a498f719 /lib/Driver/Driver.cpp | |
parent | cd78e612d6fa8e214e6a6bb0e739a0c3e419df91 (diff) |
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. ;]
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r-- | lib/Driver/Driver.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 6a4e0b3f75..7c26a0ef15 100644 --- a/lib/Driver/Driver.cpp +++ b/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); |