summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ScheduleDAG.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-01-27 08:48:42 +0000
committerEric Christopher <echristo@gmail.com>2015-01-27 08:48:42 +0000
commit337262068f8daa54a8558980d7780a069b8846c2 (patch)
treebad942e62e2264f22587153dc764af4fad02b0c2 /llvm/lib/CodeGen/ScheduleDAG.cpp
parentf9d020d41209b783fd29d79b7b63e6807edd75ea (diff)
downloadbcm5719-llvm-337262068f8daa54a8558980d7780a069b8846c2.tar.gz
bcm5719-llvm-337262068f8daa54a8558980d7780a069b8846c2.zip
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. llvm-svn: 227185
Diffstat (limited to 'llvm/lib/CodeGen/ScheduleDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/ScheduleDAG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/ScheduleDAG.cpp b/llvm/lib/CodeGen/ScheduleDAG.cpp
index 6f8b337c651..76a7fef58fc 100644
--- a/llvm/lib/CodeGen/ScheduleDAG.cpp
+++ b/llvm/lib/CodeGen/ScheduleDAG.cpp
@@ -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;
OpenPOWER on IntegriCloud