From cf705b21e2fd2aa05a712942b65183e6cf56bc24 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Wed, 25 Jan 2012 21:03:58 +0000 Subject: [PATCH] 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 --- clang/lib/Driver/Driver.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index 6a4e0b3f7596..7c26a0ef15f8 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);