From 7d78ab575357e722bc7b7b96fa39b85722554acb Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Thu, 17 Jul 2014 09:43:27 +0000 Subject: [PATCH] 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 llvm-svn: 213240 --- llvm/lib/Support/Triple.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index 2c2c90a..2b8b397 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/lib/Support/Triple.cpp @@ -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"; -- 2.7.4