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
This commit is contained in:
Daniel Dunbar
2009-07-15 09:22:31 +00:00
parent 7a46d7898e
commit 4246790aa8
37 changed files with 134 additions and 59 deletions

View File

@@ -19,7 +19,8 @@
using namespace llvm;
// Register the target.
static RegisterTarget<SparcTargetMachine> X("sparc", "SPARC");
extern Target TheSparcTarget;
static RegisterTarget<SparcTargetMachine> X(TheSparcTarget, "sparc", "SPARC");
// No assembler printer by default
SparcTargetMachine::AsmPrinterCtorFn SparcTargetMachine::AsmPrinterCtor = 0;