[llvm] r213240 - Fix the prefix for arm64 triple

Yi Kong Yi.Kong at arm.com
Thu Jul 17 02:43:27 PDT 2014

Author: kongyi
Date: Thu Jul 17 04:43:27 2014
New Revision: 213240

URL: http://llvm.org/viewvc/llvm-project?rev=213240&view=rev
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


Modified: llvm/trunk/lib/Support/Triple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Triple.cpp?rev=213240&r1=213239&r2=213240&view=diff
--- llvm/trunk/lib/Support/Triple.cpp (original)
+++ llvm/trunk/lib/Support/Triple.cpp Thu Jul 17 04:43:27 2014
@@ -61,6 +61,8 @@ const char *Triple::getArchTypePrefix(Ar
     return nullptr;
+  case arm64:
+  case arm64_be:
   case aarch64:
   case aarch64_be:  return "aarch64";
@@ -69,9 +71,6 @@ const char *Triple::getArchTypePrefix(Ar
   case thumb:
   case thumbeb:     return "arm";
-  case arm64:       
-  case arm64_be:    return "arm64";
   case ppc64:
   case ppc64le:
   case ppc:         return "ppc";

More information about the llvm-commits mailing list