the x86 version of the name is x86-64, not x86_64. Handle this properly

in getArchTypeForLLVMName.

llvm-svn: 78799
This commit is contained in:
Chris Lattner 2009-08-12 06:45:02 +00:00
parent f5d73f0aef
commit 68883c17a2

View 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;