the x86 version of the name is x86-64, not x86_64. Handle this properly
[oota-llvm.git] / lib / Support / Triple.cpp
index a81fb5b58d611508a625547befd38c9c9943e3b4..65af29602ff97bfb566b3f6e52b8fff254e8f328 100644 (file)
@@ -99,7 +99,7 @@ Triple::ArchType Triple::getArchTypeForLLVMName(const StringRef &Name) {
     return thumb;
   if (Name == "x86")
     return x86;
-  if (Name == "x86_64")
+  if (Name == "x86-64")
     return x86_64;
   if (Name == "xcore")
     return xcore;