diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 06:49:55 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 06:49:55 +0000 |
commit | 0c795d61878156817cedbac51ec2921f2634c1a5 (patch) | |
tree | 368d6bec69dc60fd9d6fcf8201a1a76500a7546f /lib/Target/SystemZ/SystemZTargetMachine.cpp | |
parent | 92ccf70ad448eb02f9f273d2c70ae4708b3bd0f2 (diff) |
Add new helpers for registering targets.
- Less boilerplate == good.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77052 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZTargetMachine.cpp')
-rw-r--r-- | lib/Target/SystemZ/SystemZTargetMachine.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/lib/Target/SystemZ/SystemZTargetMachine.cpp b/lib/Target/SystemZ/SystemZTargetMachine.cpp index 8799190e2e..8c11a47d1a 100644 --- a/lib/Target/SystemZ/SystemZTargetMachine.cpp +++ b/lib/Target/SystemZ/SystemZTargetMachine.cpp @@ -1,4 +1,4 @@ -//===-- SystemZTargetMachine.cpp - Define TargetMachine for SystemZ -----------===// +//===-- SystemZTargetMachine.cpp - Define TargetMachine for SystemZ -------===// // // The LLVM Compiler Infrastructure // @@ -15,19 +15,12 @@ #include "SystemZ.h" #include "llvm/Module.h" #include "llvm/PassManager.h" -#include "llvm/Target/TargetMachineRegistry.h" +#include "llvm/Target/TargetRegistry.h" using namespace llvm; -namespace { - // Register the target. - RegisterTarget<SystemZTargetMachine> X(TheSystemZTarget, - "systemz", - "SystemZ [experimental]"); -} - -// Force static initialization. extern "C" void LLVMInitializeSystemZTarget() { - + // Register the target. + RegisterTargetMachine<SystemZTargetMachine> X(TheSystemZTarget); } const TargetAsmInfo *SystemZTargetMachine::createTargetAsmInfo() const { |