diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-07-15 09:22:31 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-15 09:22:31 +0000 |
| commit | 4246790aa84a530b0378d917023584c2c7adb4a9 (patch) | |
| tree | 3bf51eb9b30b759f48650cb5aaf3496c05c95177 /lib/Target/Mips/MipsTargetMachine.cpp | |
| parent | 7a46d7898e3eff918c945131ca2ca705885f2552 (diff) | |
Register Target's TargetMachine and AsmPrinter in the new registry.
- This abuses TargetMachineRegistry's constructor for now, this will get
cleaned up in time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75762 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsTargetMachine.cpp')
| -rw-r--r-- | lib/Target/Mips/MipsTargetMachine.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Target/Mips/MipsTargetMachine.cpp b/lib/Target/Mips/MipsTargetMachine.cpp index 1e6add4a54..1495c7acb7 100644 --- a/lib/Target/Mips/MipsTargetMachine.cpp +++ b/lib/Target/Mips/MipsTargetMachine.cpp @@ -28,8 +28,12 @@ extern "C" int MipsTargetMachineModule; int MipsTargetMachineModule = 0; // Register the target. -static RegisterTarget<MipsTargetMachine> X("mips", "Mips"); -static RegisterTarget<MipselTargetMachine> Y("mipsel", "Mipsel"); +extern Target TheMipsTarget; +static RegisterTarget<MipsTargetMachine> X(TheMipsTarget, "mips", "Mips"); + +extern Target TheMipselTarget; +static RegisterTarget<MipselTargetMachine> Y(TheMipselTarget, "mipsel", + "Mipsel"); MipsTargetMachine::AsmPrinterCtorFn MipsTargetMachine::AsmPrinterCtor = 0; |
