diff options
author | Chris Lattner <sabre@nondot.org> | 2005-04-02 20:02:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-04-02 20:02:41 +0000 |
commit | 526cc17b55517bb62becf96c7046df5e25c7de17 (patch) | |
tree | 788b90d980fd6187d3f7c43cdd7e6f3d375c09a0 /llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp | |
parent | 63e3a262d8bc02bf24b2bacb68009acffcc5b345 (diff) | |
download | bcm5719-llvm-526cc17b55517bb62becf96c7046df5e25c7de17.tar.gz bcm5719-llvm-526cc17b55517bb62becf96c7046df5e25c7de17.zip |
use a callee_iterator typedef.
llvm-svn: 21038
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp')
-rw-r--r-- | llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp b/llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp index d3ffc5205bd..b46564dd4f4 100644 --- a/llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp +++ b/llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp @@ -339,8 +339,8 @@ processSCC(DSGraph &FG, std::vector<DSGraph*> &Stack, unsigned &NextID, Instruction *Call = CI->getCallSite().getInstruction(); // Loop over all of the actually called functions... - ActualCalleesTy::const_iterator I = callee_begin(Call),E = callee_end(Call); - for (; I != E; ++I) + for (callee_iterator I = callee_begin(Call), E = callee_end(Call); + I != E; ++I) if (!I->second->isExternal()) { // Process the callee as necessary. unsigned M = processSCC(getOrCreateGraph(*I->second), @@ -414,8 +414,7 @@ void EquivClassGraphs::processGraph(DSGraph &G) { // graph so we only need to do this once. // DSGraph* CalleeGraph = NULL; - ActualCalleesTy::const_iterator I = callee_begin(TheCall); - ActualCalleesTy::const_iterator E = callee_end(TheCall); + callee_iterator I = callee_begin(TheCall), E = callee_end(TheCall); unsigned TNum, Num; // Loop over all potential callees to find the first non-external callee. |