summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/IA64/IA64TargetMachine.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-07-09 17:25:29 +0000
committerChris Lattner <sabre@nondot.org>2007-07-09 17:25:29 +0000
commit517290ae5245ad2bb543fe53ef13deb19e2a6eb7 (patch)
tree9cd41f75f5e3c3fa350c3af0c43275955a8a71a0 /llvm/lib/Target/IA64/IA64TargetMachine.cpp
parent6fec9a91b7e782491225a312fbcb5c0cf3146fbd (diff)
downloadbcm5719-llvm-517290ae5245ad2bb543fe53ef13deb19e2a6eb7.tar.gz
bcm5719-llvm-517290ae5245ad2bb543fe53ef13deb19e2a6eb7.zip
The various "getModuleMatchQuality" implementations should return
zero if they see a target triple they don't understand. llvm-svn: 38463
Diffstat (limited to 'llvm/lib/Target/IA64/IA64TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/IA64/IA64TargetMachine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/IA64/IA64TargetMachine.cpp b/llvm/lib/Target/IA64/IA64TargetMachine.cpp
index d65ad3c4e1c..51beaa1ebe1 100644
--- a/llvm/lib/Target/IA64/IA64TargetMachine.cpp
+++ b/llvm/lib/Target/IA64/IA64TargetMachine.cpp
@@ -50,6 +50,8 @@ unsigned IA64TargetMachine::getModuleMatchQuality(const Module &M) {
if (seenIA64)
return 20; // strong match
}
+ // If the target triple is something non-ia64, we don't match.
+ if (!TT.empty()) return 0;
#if defined(__ia64__) || defined(__IA64__)
return 5;
OpenPOWER on IntegriCloud