mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Next round of MC refactoring. This patch factor MC table instantiations, MC
registeration and creation code into XXXMCDesc libraries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135184 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -15,8 +15,6 @@
|
||||
#include "XCore.h"
|
||||
#include "llvm/Target/TargetRegistry.h"
|
||||
|
||||
#define GET_SUBTARGETINFO_ENUM
|
||||
#define GET_SUBTARGETINFO_MC_DESC
|
||||
#define GET_SUBTARGETINFO_TARGET_DESC
|
||||
#define GET_SUBTARGETINFO_CTOR
|
||||
#include "XCoreGenSubtargetInfo.inc"
|
||||
@ -28,16 +26,3 @@ XCoreSubtarget::XCoreSubtarget(const std::string &TT,
|
||||
: XCoreGenSubtargetInfo(TT, CPU, FS)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
MCSubtargetInfo *createXCoreMCSubtargetInfo(StringRef TT, StringRef CPU,
|
||||
StringRef FS) {
|
||||
MCSubtargetInfo *X = new MCSubtargetInfo();
|
||||
InitXCoreMCSubtargetInfo(X, TT, CPU, FS);
|
||||
return X;
|
||||
}
|
||||
|
||||
extern "C" void LLVMInitializeXCoreMCSubtargetInfo() {
|
||||
TargetRegistry::RegisterMCSubtargetInfo(TheXCoreTarget,
|
||||
createXCoreMCSubtargetInfo);
|
||||
}
|
||||
|
Reference in New Issue
Block a user