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
This commit is contained in:
Chandler Carruth 2012-01-25 21:03:58 +00:00
parent 11c00fc7b2
commit cf705b21e2
1 changed files with 4 additions and 1 deletions

View File

@ -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);