mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 07:24:25 +00:00
Rename createAsmInfo to createMCAsmInfo and move registration code to MCTargetDesc to prepare for next round of changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135219 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -15,7 +15,6 @@ add_llvm_target(SparcCodeGen
|
||||
SparcISelDAGToDAG.cpp
|
||||
SparcISelLowering.cpp
|
||||
SparcFrameLowering.cpp
|
||||
SparcMCAsmInfo.cpp
|
||||
SparcRegisterInfo.cpp
|
||||
SparcSubtarget.cpp
|
||||
SparcTargetMachine.cpp
|
||||
|
@ -1 +1,4 @@
|
||||
add_llvm_library(LLVMSparcDesc SparcMCTargetDesc.cpp)
|
||||
add_llvm_library(LLVMSparcDesc
|
||||
SparcMCTargetDesc.cpp
|
||||
SparcMCAsmInfo.cpp
|
||||
)
|
||||
|
@ -12,6 +12,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "SparcMCTargetDesc.h"
|
||||
#include "SparcMCAsmInfo.h"
|
||||
#include "llvm/MC/MCInstrInfo.h"
|
||||
#include "llvm/MC/MCRegisterInfo.h"
|
||||
#include "llvm/MC/MCSubtargetInfo.h"
|
||||
@ -28,7 +29,7 @@
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
MCInstrInfo *createSparcMCInstrInfo() {
|
||||
static MCInstrInfo *createSparcMCInstrInfo() {
|
||||
MCInstrInfo *X = new MCInstrInfo();
|
||||
InitSparcMCInstrInfo(X);
|
||||
return X;
|
||||
@ -38,8 +39,8 @@ extern "C" void LLVMInitializeSparcMCInstrInfo() {
|
||||
TargetRegistry::RegisterMCInstrInfo(TheSparcTarget, createSparcMCInstrInfo);
|
||||
}
|
||||
|
||||
MCSubtargetInfo *createSparcMCSubtargetInfo(StringRef TT, StringRef CPU,
|
||||
StringRef FS) {
|
||||
static MCSubtargetInfo *createSparcMCSubtargetInfo(StringRef TT, StringRef CPU,
|
||||
StringRef FS) {
|
||||
MCSubtargetInfo *X = new MCSubtargetInfo();
|
||||
InitSparcMCSubtargetInfo(X, TT, CPU, FS);
|
||||
return X;
|
||||
@ -49,3 +50,8 @@ extern "C" void LLVMInitializeSparcMCSubtargetInfo() {
|
||||
TargetRegistry::RegisterMCSubtargetInfo(TheSparcTarget,
|
||||
createSparcMCSubtargetInfo);
|
||||
}
|
||||
|
||||
extern "C" void LLVMInitializeSparcMCAsmInfo() {
|
||||
RegisterMCAsmInfo<SparcELFMCAsmInfo> X(TheSparcTarget);
|
||||
RegisterMCAsmInfo<SparcELFMCAsmInfo> Y(TheSparcV9Target);
|
||||
}
|
||||
|
@ -11,7 +11,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "Sparc.h"
|
||||
#include "SparcMCAsmInfo.h"
|
||||
#include "SparcTargetMachine.h"
|
||||
#include "llvm/PassManager.h"
|
||||
#include "llvm/Target/TargetRegistry.h"
|
||||
@ -21,10 +20,6 @@ extern "C" void LLVMInitializeSparcTarget() {
|
||||
// Register the target.
|
||||
RegisterTargetMachine<SparcV8TargetMachine> X(TheSparcTarget);
|
||||
RegisterTargetMachine<SparcV9TargetMachine> Y(TheSparcV9Target);
|
||||
|
||||
RegisterAsmInfo<SparcELFMCAsmInfo> A(TheSparcTarget);
|
||||
RegisterAsmInfo<SparcELFMCAsmInfo> B(TheSparcV9Target);
|
||||
|
||||
}
|
||||
|
||||
/// SparcTargetMachine ctor - Create an ILP32 architecture model
|
||||
|
Reference in New Issue
Block a user