summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-26 05:03:33 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-26 05:03:33 +0000
commitee01b242e8600e97dea3f0c0bd9895c8dc71bf94 (patch)
tree44f8a26930ac47b87e7594d575cd46ea14c6c158 /llvm/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp
parentbd481a119c5c69b4f8ede1db221327a415d010af (diff)
downloadbcm5719-llvm-ee01b242e8600e97dea3f0c0bd9895c8dc71bf94.tar.gz
bcm5719-llvm-ee01b242e8600e97dea3f0c0bd9895c8dc71bf94.zip
Factor commonality in triple match routines into helper template for registering
classes, and migrate existing targets over. llvm-svn: 77126
Diffstat (limited to 'llvm/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp')
-rw-r--r--llvm/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/llvm/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp b/llvm/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp
index e063a911d0d..8272b118820 100644
--- a/llvm/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp
+++ b/llvm/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp
@@ -14,17 +14,6 @@ using namespace llvm;
Target llvm::TheSystemZTarget;
-static unsigned SystemZ_TripleMatchQuality(const std::string &TT) {
- // We strongly match s390x
- if (TT.size() >= 5 && TT[0] == 's' && TT[1] == '3' && TT[2] == '9' &&
- TT[3] == '0' && TT[4] == 'x')
- return 20;
-
- return 0;
-}
-
extern "C" void LLVMInitializeSystemZTargetInfo() {
- TargetRegistry::RegisterTarget(TheSystemZTarget, "systemz",
- "SystemZ",
- &SystemZ_TripleMatchQuality);
+ RegisterTarget<Triple::systemz> X(TheSystemZTarget, "systemz", "SystemZ");
}
OpenPOWER on IntegriCloud