[cfe-commits] r148977 - /cfe/trunk/lib/Driver/Driver.cpp

Chandler Carruth chandlerc at gmail.com
Wed Jan 25 13:03:59 PST 2012


Author: chandlerc
Date: Wed Jan 25 15:03:58 2012
New Revision: 148977

URL: http://llvm.org/viewvc/llvm-project?rev=148977&view=rev
Log:
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. ;]

Modified:
    cfe/trunk/lib/Driver/Driver.cpp

Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=148977&r1=148976&r2=148977&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Wed Jan 25 15:03:58 2012
@@ -1663,7 +1663,10 @@
       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);





More information about the cfe-commits mailing list