aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-11-11 21:31:56 +0000
committerDan Gohman <gohman@apple.com>2008-11-11 21:31:56 +0000
commiteb9dbf117f1cc4da9b333dd6e410638ddd974f55 (patch)
tree7c2c06cb2b6a5fcdf596509621d9f704908890cf /lib/CodeGen
parent3af7fd5038f06c25269753e3f5878e9d08165161 (diff)
Avoid relying on the SelectionDAG for initializing the MachineFunction and
TargetLoweringInfo variables for the scheduler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59082 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/ScheduleDAG.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
index eb0918ed33..1f898dd726 100644
--- a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
@@ -24,10 +24,10 @@ ScheduleDAG::ScheduleDAG(SelectionDAG &dag, MachineBasicBlock *bb,
const TargetMachine &tm)
: DAG(dag), BB(bb), TM(tm), MRI(BB->getParent()->getRegInfo()) {
TII = TM.getInstrInfo();
- MF = &DAG.getMachineFunction();
+ MF = BB->getParent();
TRI = TM.getRegisterInfo();
- TLI = &DAG.getTargetLoweringInfo();
- ConstPool = BB->getParent()->getConstantPool();
+ TLI = TM.getTargetLowering();
+ ConstPool = MF->getConstantPool();
}
/// CheckForPhysRegDependency - Check if the dependency between def and use of