mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
Make InstrInfo depend only upon the Subtarget getting passed in
rather than the TargetMachine. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213425 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -115,7 +115,7 @@ MipsSubtarget::MipsSubtarget(const std::string &TT, const std::string &CPU,
|
||||
HasDSPR2(false), AllowMixed16_32(Mixed16_32 | Mips_Os16), Os16(Mips_Os16),
|
||||
HasMSA(false), OverrideMode(NoOverride), TM(_TM), TargetTriple(TT),
|
||||
DL(computeDataLayout(initializeSubtargetDependencies(CPU, FS, TM))),
|
||||
TSInfo(DL), JITInfo(), InstrInfo(MipsInstrInfo::create(*TM)),
|
||||
TSInfo(DL), JITInfo(), InstrInfo(MipsInstrInfo::create(*this)),
|
||||
FrameLowering(MipsFrameLowering::create(*TM, *this)),
|
||||
TLInfo(MipsTargetLowering::create(*TM)) {
|
||||
|
||||
@@ -254,7 +254,7 @@ void MipsSubtarget::setHelperClassesMips16() {
|
||||
FrameLoweringSE.swap(FrameLowering);
|
||||
TLInfoSE.swap(TLInfo);
|
||||
if (!InstrInfo16) {
|
||||
InstrInfo.reset(MipsInstrInfo::create(*TM));
|
||||
InstrInfo.reset(MipsInstrInfo::create(*this));
|
||||
FrameLowering.reset(MipsFrameLowering::create(*TM, *this));
|
||||
TLInfo.reset(MipsTargetLowering::create(*TM));
|
||||
} else {
|
||||
@@ -272,7 +272,7 @@ void MipsSubtarget::setHelperClassesMipsSE() {
|
||||
FrameLowering16.swap(FrameLowering);
|
||||
TLInfo16.swap(TLInfo);
|
||||
if (!InstrInfoSE) {
|
||||
InstrInfo.reset(MipsInstrInfo::create(*TM));
|
||||
InstrInfo.reset(MipsInstrInfo::create(*this));
|
||||
FrameLowering.reset(MipsFrameLowering::create(*TM, *this));
|
||||
TLInfo.reset(MipsTargetLowering::create(*TM));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user