From 8268cc9c77a9e0549c440f554d827b2320aa203c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 12 Aug 2009 06:45:02 +0000 Subject: the x86 version of the name is x86-64, not x86_64. Handle this properly in getArchTypeForLLVMName. llvm-svn: 78799 --- llvm/lib/Support/Triple.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support/Triple.cpp') diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index a81fb5b..65af296 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/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; -- cgit v1.1