mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Access subtarget specific variables off of the MachineFunction's
cached subtarget and not the TargetMachine. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219668 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
151811c07a
commit
d879de1ece
@ -29,7 +29,6 @@
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/Target/TargetInstrInfo.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
#include "llvm/Target/TargetSubtargetInfo.h"
|
||||
using namespace llvm;
|
||||
@ -246,9 +245,8 @@ bool MachineSinking::runOnMachineFunction(MachineFunction &MF) {
|
||||
|
||||
DEBUG(dbgs() << "******** Machine Sinking ********\n");
|
||||
|
||||
const TargetMachine &TM = MF.getTarget();
|
||||
TII = TM.getSubtargetImpl()->getInstrInfo();
|
||||
TRI = TM.getSubtargetImpl()->getRegisterInfo();
|
||||
TII = MF.getSubtarget().getInstrInfo();
|
||||
TRI = MF.getSubtarget().getRegisterInfo();
|
||||
MRI = &MF.getRegInfo();
|
||||
DT = &getAnalysis<MachineDominatorTree>();
|
||||
LI = &getAnalysis<MachineLoopInfo>();
|
||||
|
@ -294,8 +294,8 @@ bool MachineVerifier::runOnMachineFunction(MachineFunction &MF) {
|
||||
|
||||
this->MF = &MF;
|
||||
TM = &MF.getTarget();
|
||||
TII = TM->getSubtargetImpl()->getInstrInfo();
|
||||
TRI = TM->getSubtargetImpl()->getRegisterInfo();
|
||||
TII = MF.getSubtarget().getInstrInfo();
|
||||
TRI = MF.getSubtarget().getRegisterInfo();
|
||||
MRI = &MF.getRegInfo();
|
||||
|
||||
LiveVars = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user