summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-08-08 08:27:44 +0000
committerTim Northover <tnorthover@apple.com>2014-08-08 08:27:44 +0000
commit0f18ff9817b3e77322948a77eebc915c75444075 (patch)
tree7d52f873b4fbf510cf08e42e90b618417efde6f2 /llvm/lib
parentb0e86ec814582f8577299c63d31f3d2513586ee2 (diff)
downloadbcm5719-llvm-0f18ff9817b3e77322948a77eebc915c75444075.tar.gz
bcm5719-llvm-0f18ff9817b3e77322948a77eebc915c75444075.zip
AArch64: stop trying to take control of all UnknownArch triples.
This short-circuited our error reporting for incorrectly specified target triples (you'd get AArch64 code instead). Should fix PR20567. llvm-svn: 215191
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AArch64/TargetInfo/AArch64TargetInfo.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/AArch64/TargetInfo/AArch64TargetInfo.cpp b/llvm/lib/Target/AArch64/TargetInfo/AArch64TargetInfo.cpp
index 1fee256c72c..f42ecb1677d 100644
--- a/llvm/lib/Target/AArch64/TargetInfo/AArch64TargetInfo.cpp
+++ b/llvm/lib/Target/AArch64/TargetInfo/AArch64TargetInfo.cpp
@@ -20,8 +20,9 @@ Target TheARM64Target;
extern "C" void LLVMInitializeAArch64TargetInfo() {
// Now register the "arm64" name for use with "-march". We don't want it to
// take possession of the Triple::aarch64 tag though.
- RegisterTarget<Triple::UnknownArch, /*HasJIT=*/true> X(
- TheARM64Target, "arm64", "ARM64 (little endian)");
+ TargetRegistry::RegisterTarget(TheARM64Target, "arm64",
+ "ARM64 (little endian)",
+ [](Triple::ArchType) { return false; }, true);
RegisterTarget<Triple::aarch64, /*HasJIT=*/true> Z(
TheAArch64leTarget, "aarch64", "AArch64 (little endian)");
OpenPOWER on IntegriCloud