r178358 - Hexagon: Set Hexagon tool-chain when configured as OSless target.

Jyotsna Verma jverma at codeaurora.org
Fri Mar 29 12:09:20 PDT 2013


Author: jverma
Date: Fri Mar 29 14:09:20 2013
New Revision: 178358

URL: http://llvm.org/viewvc/llvm-project?rev=178358&view=rev
Log:
Hexagon: Set Hexagon tool-chain when configured as OSless target.


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=178358&r1=178357&r2=178358&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Fri Mar 29 14:09:20 2013
@@ -1753,7 +1753,11 @@ const ToolChain &Driver::getToolChain(co
         TC = new toolchains::TCEToolChain(*this, Target, Args);
         break;
       }
-
+      // If Hexagon is configured as an OSless target
+      if (Target.getArch() == llvm::Triple::hexagon) {
+        TC = new toolchains::Hexagon_TC(*this, Target, Args);
+        break;
+      }
       TC = new toolchains::Generic_GCC(*this, Target, Args);
       break;
     }





More information about the cfe-commits mailing list