summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-05 06:10:13 +0000
committerChris Lattner <sabre@nondot.org>2010-04-05 06:10:13 +0000
commit6361414c886de362343ef12cc19741011ad606b6 (patch)
tree65e5603863c58b6ac77aec4b78a55466ea784d28 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent305f2efb63a129aab9013e7d4806c3975a1f1111 (diff)
downloadbcm5719-llvm-6361414c886de362343ef12cc19741011ad606b6.tar.gz
bcm5719-llvm-6361414c886de362343ef12cc19741011ad606b6.zip
remove some redundant MMI arguments.
llvm-svn: 100417
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 7dea29c8c7b..f26816aa0d0 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -801,9 +801,9 @@ SelectionDAG::SelectionDAG(TargetLowering &tli, FunctionLoweringInfo &fli)
DbgInfo = new SDDbgInfo();
}
-void SelectionDAG::init(MachineFunction &mf, MachineModuleInfo *mmi) {
+void SelectionDAG::init(MachineFunction &mf) {
MF = &mf;
- MMI = mmi;
+ MMI = &mf.getMMI();
Context = &mf.getFunction()->getContext();
}
@@ -2256,8 +2256,7 @@ bool SelectionDAG::isVerifiedDebugInfoDesc(SDValue Op) const {
if (GA->getOffset() != 0) return false;
GlobalVariable *GV = dyn_cast<GlobalVariable>(GA->getGlobal());
if (!GV) return false;
- MachineModuleInfo *MMI = getMachineModuleInfo();
- return MMI && MMI->hasDebugInfo();
+ return MMI->hasDebugInfo();
}
OpenPOWER on IntegriCloud