aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-12 06:45:02 +0000
committerChris Lattner <sabre@nondot.org>2009-08-12 06:45:02 +0000
commitba7c8e248dce02b3e74a04285afd8510f426ed42 (patch)
treebcf82e0ad1921ee6e1c78728fbffcfcd33aeeee8
parentabb45def925e7836396a55559e398afa7f6a81f1 (diff)
downloadexternal_llvm-ba7c8e248dce02b3e74a04285afd8510f426ed42.zip
external_llvm-ba7c8e248dce02b3e74a04285afd8510f426ed42.tar.gz
external_llvm-ba7c8e248dce02b3e74a04285afd8510f426ed42.tar.bz2
the x86 version of the name is x86-64, not x86_64. Handle this properly
in getArchTypeForLLVMName. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78799 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Support/Triple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp
index a81fb5b..65af296 100644
--- a/lib/Support/Triple.cpp
+++ b/lib/Support/Triple.cpp
@@ -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;