mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user