From a5f47ea23d274527bdbe461d69bc63c82416d685 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 15 Mar 2005 16:55:04 +0000 Subject: Start using retnodes_* for iteration. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20618 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/DataStructure/BottomUpClosure.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Analysis/DataStructure/BottomUpClosure.cpp') diff --git a/lib/Analysis/DataStructure/BottomUpClosure.cpp b/lib/Analysis/DataStructure/BottomUpClosure.cpp index 5fca3ad433..6c26602889 100644 --- a/lib/Analysis/DataStructure/BottomUpClosure.cpp +++ b/lib/Analysis/DataStructure/BottomUpClosure.cpp @@ -228,8 +228,8 @@ unsigned BUDataStructures::calculateGraphs(Function *F, SCCGraph->getReturnNodes(), NodeMap); } // Update the DSInfo map and delete the old graph... - for (DSGraph::ReturnNodesTy::iterator I = G.getReturnNodes().begin(), - E = G.getReturnNodes().end(); I != E; ++I) + for (DSGraph::retnodes_iterator I = G.retnodes_begin(), + E = G.retnodes_end(); I != E; ++I) DSInfo[I->first] = SCCGraph; delete &G; } @@ -496,7 +496,7 @@ void BUDataStructures::copyValue(Value *From, Value *To) { assert(NG->getReturnNodes().size() == 1 && "Cannot copy SCC's yet!"); // Change the Function* is the returnnodes map to the ToF. - DSNodeHandle Ret = NG->getReturnNodes().begin()->second; + DSNodeHandle Ret = NG->retnodes_begin()->second; NG->getReturnNodes().clear(); NG->getReturnNodes()[ToF] = Ret; return; -- cgit v1.2.3