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

Anton Korobeynikov asl at math.spbu.ru
Sat Mar 5 08:05:17 PST 2011

Author: asl
Date: Sat Mar  5 10:05:17 2011
New Revision: 127087

URL: http://llvm.org/viewvc/llvm-project?rev=127087&view=rev
Normalize target triple passed out of driver. Basically this means
that at cc1 level we will always have normalized triple and thus can
provide necessary default based on e.g. environment value (e.g. for
"arm-eabi" triple, etc.)


Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=127087&r1=127086&r2=127087&view=diff
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Sat Mar  5 10:05:17 2011
@@ -1323,7 +1323,7 @@
 const HostInfo *Driver::GetHostInfo(const char *TripleStr) const {
   llvm::PrettyStackTraceString CrashInfo("Constructing host");
-  llvm::Triple Triple(TripleStr);
+  llvm::Triple Triple(llvm::Triple::normalize(TripleStr).c_str());
   // TCE is an osless target
   if (Triple.getArchName() == "tce")

More information about the cfe-commits mailing list