mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 06:30:39 +00:00
Have MachineInstrBundle use the MachineFunction for subtarget
access rather than the TargetMachine. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219662 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3788687f31
commit
c026db75e7
@ -104,12 +104,12 @@ void llvm::finalizeBundle(MachineBasicBlock &MBB,
|
||||
assert(FirstMI != LastMI && "Empty bundle?");
|
||||
MIBundleBuilder Bundle(MBB, FirstMI, LastMI);
|
||||
|
||||
const TargetMachine &TM = MBB.getParent()->getTarget();
|
||||
const TargetInstrInfo *TII = TM.getSubtargetImpl()->getInstrInfo();
|
||||
const TargetRegisterInfo *TRI = TM.getSubtargetImpl()->getRegisterInfo();
|
||||
MachineFunction &MF = *MBB.getParent();
|
||||
const TargetInstrInfo *TII = MF.getSubtarget().getInstrInfo();
|
||||
const TargetRegisterInfo *TRI = MF.getSubtarget().getRegisterInfo();
|
||||
|
||||
MachineInstrBuilder MIB = BuildMI(*MBB.getParent(), FirstMI->getDebugLoc(),
|
||||
TII->get(TargetOpcode::BUNDLE));
|
||||
MachineInstrBuilder MIB =
|
||||
BuildMI(MF, FirstMI->getDebugLoc(), TII->get(TargetOpcode::BUNDLE));
|
||||
Bundle.prepend(MIB);
|
||||
|
||||
SmallVector<unsigned, 32> LocalDefs;
|
||||
|
Loading…
Reference in New Issue
Block a user