diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-07-26 05:03:33 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-26 05:03:33 +0000 |
| commit | ee01b242e8600e97dea3f0c0bd9895c8dc71bf94 (patch) | |
| tree | 44f8a26930ac47b87e7594d575cd46ea14c6c158 /llvm/lib/Target/PIC16/TargetInfo/PIC16TargetInfo.cpp | |
| parent | bd481a119c5c69b4f8ede1db221327a415d010af (diff) | |
| download | bcm5719-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/PIC16/TargetInfo/PIC16TargetInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/PIC16/TargetInfo/PIC16TargetInfo.cpp | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/llvm/lib/Target/PIC16/TargetInfo/PIC16TargetInfo.cpp b/llvm/lib/Target/PIC16/TargetInfo/PIC16TargetInfo.cpp index 87341b20e21..46cc81967eb 100644 --- a/llvm/lib/Target/PIC16/TargetInfo/PIC16TargetInfo.cpp +++ b/llvm/lib/Target/PIC16/TargetInfo/PIC16TargetInfo.cpp @@ -12,24 +12,10 @@ #include "llvm/Target/TargetRegistry.h" using namespace llvm; -Target llvm::ThePIC16Target; - -static unsigned PIC16_TripleMatchQuality(const std::string &TT) { - return 0; -} - -Target llvm::TheCooperTarget; - -static unsigned Cooper_TripleMatchQuality(const std::string &TT) { - return 0; -} +Target llvm::ThePIC16Target, llvm::TheCooperTarget; extern "C" void LLVMInitializePIC16TargetInfo() { - TargetRegistry::RegisterTarget(ThePIC16Target, "pic16", - "PIC16 14-bit [experimental]", - &PIC16_TripleMatchQuality); + RegisterTarget<> X(ThePIC16Target, "pic16", "PIC16 14-bit [experimental]"); - TargetRegistry::RegisterTarget(TheCooperTarget, "cooper", - "PIC16 Cooper [experimental]", - &Cooper_TripleMatchQuality); + RegisterTarget<> Y(TheCooperTarget, "cooper", "PIC16 Cooper [experimental]"); } |

