remove the now-redundant MMI pointer in SelectionDAG.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100419 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index f26816a..103872f 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -803,7 +803,6 @@
void SelectionDAG::init(MachineFunction &mf) {
MF = &mf;
- MMI = &mf.getMMI();
Context = &mf.getFunction()->getContext();
}
@@ -2256,7 +2255,7 @@
if (GA->getOffset() != 0) return false;
GlobalVariable *GV = dyn_cast<GlobalVariable>(GA->getGlobal());
if (!GV) return false;
- return MMI->hasDebugInfo();
+ return MF->getMMI().hasDebugInfo();
}