summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commitfb78ef9fd3f831cc399cb04d56d972d3b108b724 (patch)
treeaa4c1d574f3517df55e0f327cfada95fe354af50 /llvm/lib
parentfab3f936ddcc4916c365e989be3679b9bb96ea4f (diff)
downloadbcm5719-llvm-fb78ef9fd3f831cc399cb04d56d972d3b108b724.tar.gz
bcm5719-llvm-fb78ef9fd3f831cc399cb04d56d972d3b108b724.zip
Avoid relying on the SelectionDAG for initializing the MachineFunction and
TargetLoweringInfo variables for the scheduler. llvm-svn: 59082
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
index eb0918ed331..1f898dd7265 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud