the x86 version of the name is x86-64, not x86_64. Handle this properly
authorChris Lattner <sabre@nondot.org>
Wed, 12 Aug 2009 06:45:02 +0000 (06:45 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 12 Aug 2009 06:45:02 +0000 (06:45 +0000)
in getArchTypeForLLVMName.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78799 91177308-0d34-0410-b5e6-96231b3b80d8

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;