mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-14 15:25:25 +00:00
Replace some uses of getSubtargetImpl with the cached version
off of the MachineFunction or with the version that takes a Function reference as an argument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227185 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -600,8 +600,7 @@ MachineFrameInfo::getPristineRegs(const MachineBasicBlock *MBB) const {
|
||||
assert(MBB && "MBB must be valid");
|
||||
const MachineFunction *MF = MBB->getParent();
|
||||
assert(MF && "MBB must be part of a MachineFunction");
|
||||
const TargetMachine &TM = MF->getTarget();
|
||||
const TargetRegisterInfo *TRI = TM.getSubtargetImpl()->getRegisterInfo();
|
||||
const TargetRegisterInfo *TRI = MF->getSubtarget().getRegisterInfo();
|
||||
BitVector BV(TRI->getNumRegs());
|
||||
|
||||
// Before CSI is calculated, no registers are considered pristine. They can be
|
||||
|
Reference in New Issue
Block a user