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
+2 -1
View File
@@ -26,9 +26,10 @@ using namespace llvm;
extern "C" int XCoreTargetMachineModule;
int XCoreTargetMachineModule = 0;
extern Target TheXCoreTarget;
namespace {
// Register the target.
RegisterTarget<XCoreTargetMachine> X("xcore", "XCore");
RegisterTarget<XCoreTargetMachine> X(TheXCoreTarget, "xcore", "XCore");
}
// Force static initialization.