Fix the prefix for arm64 triple

Triple.cpp still returns "arm64" as prefix for arm64 triple, causing Clang not
being able to select the correct GCCBuiltin IR.

This patch changes the value to correct prefix "aarch64". Regression test will
be added in the coming patch.

Differential Revision: http://reviews.llvm.org/D4516


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213240 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Yi Kong 2014-07-17 09:43:27 +00:00
parent e1287f556f
commit ad591b341b

View File

@ -61,6 +61,8 @@ const char *Triple::getArchTypePrefix(ArchType Kind) {
default:
return nullptr;
case arm64:
case arm64_be:
case aarch64:
case aarch64_be: return "aarch64";
@ -69,9 +71,6 @@ const char *Triple::getArchTypePrefix(ArchType Kind) {
case thumb:
case thumbeb: return "arm";
case arm64:
case arm64_be: return "arm64";
case ppc64:
case ppc64le:
case ppc: return "ppc";