mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
The subtarget is cached on the MachineFunction. Access it directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227173 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -406,8 +406,7 @@ bool MachineCombiner::combineInstructions(MachineBasicBlock *MBB) {
|
||||
}
|
||||
|
||||
bool MachineCombiner::runOnMachineFunction(MachineFunction &MF) {
|
||||
const TargetSubtargetInfo &STI =
|
||||
MF.getTarget().getSubtarget<TargetSubtargetInfo>();
|
||||
const TargetSubtargetInfo &STI = MF.getSubtarget();
|
||||
TII = STI.getInstrInfo();
|
||||
TRI = STI.getRegisterInfo();
|
||||
SchedModel = STI.getSchedModel();
|
||||
|
Reference in New Issue
Block a user