mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +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:
@ -36,8 +36,8 @@ static cl::opt<bool> StressSchedOpt(
|
||||
void SchedulingPriorityQueue::anchor() { }
|
||||
|
||||
ScheduleDAG::ScheduleDAG(MachineFunction &mf)
|
||||
: TM(mf.getTarget()), TII(TM.getSubtargetImpl()->getInstrInfo()),
|
||||
TRI(TM.getSubtargetImpl()->getRegisterInfo()), MF(mf),
|
||||
: TM(mf.getTarget()), TII(mf.getSubtarget().getInstrInfo()),
|
||||
TRI(mf.getSubtarget().getRegisterInfo()), MF(mf),
|
||||
MRI(mf.getRegInfo()), EntrySU(), ExitSU() {
|
||||
#ifndef NDEBUG
|
||||
StressSched = StressSchedOpt;
|
||||
|
Reference in New Issue
Block a user