summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PIC16/PIC16TargetMachine.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-25 06:49:55 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-25 06:49:55 +0000
commit5680b4f285402e7cf1dc6aa7e5527ca8270a55a7 (patch)
tree8ef1bb8de5dddc88860992616994fb07efd8de1f /llvm/lib/Target/PIC16/PIC16TargetMachine.cpp
parentd43b86d4a45f4cfc5b1e27d62ace35940a52e82b (diff)
downloadbcm5719-llvm-5680b4f285402e7cf1dc6aa7e5527ca8270a55a7.tar.gz
bcm5719-llvm-5680b4f285402e7cf1dc6aa7e5527ca8270a55a7.zip
Add new helpers for registering targets.
- Less boilerplate == good. llvm-svn: 77052
Diffstat (limited to 'llvm/lib/Target/PIC16/PIC16TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/PIC16/PIC16TargetMachine.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16TargetMachine.cpp b/llvm/lib/Target/PIC16/PIC16TargetMachine.cpp
index dca6ade9384..6a4492c5484 100644
--- a/llvm/lib/Target/PIC16/PIC16TargetMachine.cpp
+++ b/llvm/lib/Target/PIC16/PIC16TargetMachine.cpp
@@ -18,25 +18,9 @@
#include "llvm/PassManager.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/Target/TargetAsmInfo.h"
-#include "llvm/Target/TargetMachineRegistry.h"
using namespace llvm;
-// Register the targets
-static RegisterTarget<PIC16TargetMachine>
-X(ThePIC16Target, "pic16", "PIC16 14-bit [experimental].");
-
-static RegisterTarget<CooperTargetMachine>
-Y(TheCooperTarget, "cooper", "PIC16 Cooper [experimental].");
-
-// Force static initialization.
-extern "C" void LLVMInitializePIC16Target() {
- TargetRegistry::RegisterAsmPrinter(ThePIC16Target,
- &createPIC16CodePrinterPass);
- TargetRegistry::RegisterAsmPrinter(TheCooperTarget,
- &createPIC16CodePrinterPass);
-}
-
// PIC16TargetMachine - Traditional PIC16 Machine.
PIC16TargetMachine::PIC16TargetMachine(const Target &T, const Module &M,
const std::string &FS, bool Cooper)
OpenPOWER on IntegriCloud