aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/IA64/IA64TargetMachine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/IA64/IA64TargetMachine.cpp')
-rw-r--r--lib/Target/IA64/IA64TargetMachine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/IA64/IA64TargetMachine.cpp b/lib/Target/IA64/IA64TargetMachine.cpp
index d65ad3c4..51beaa1 100644
--- a/lib/Target/IA64/IA64TargetMachine.cpp
+++ b/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;