diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-15 04:54:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-15 04:54:21 +0000 |
commit | 531f9e92d4d06d5cb1f250754c68e7d3b420df50 (patch) | |
tree | 741411707d21f866eb629b2449413d85b8b48667 /llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp | |
parent | 5ce25cdc6d8d274d9106280d861adaf4743e5f3d (diff) | |
download | bcm5719-llvm-531f9e92d4d06d5cb1f250754c68e7d3b420df50.tar.gz bcm5719-llvm-531f9e92d4d06d5cb1f250754c68e7d3b420df50.zip |
This mega patch converts us from using Function::a{iterator|begin|end} to
using Function::arg_{iterator|begin|end}. Likewise Module::g* -> Module::global_*.
This patch is contributed by Gabor Greif, thanks!
llvm-svn: 20597
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp')
-rw-r--r-- | llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp b/llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp index 4ada4dcca5e..ef1e01aae4b 100644 --- a/llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp +++ b/llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp @@ -215,7 +215,7 @@ void EquivClassGraphs::buildIndirectFunctionSets(Module &M) { // Record the argument nodes for use in merging later below. std::vector<DSNodeHandle> ArgNodes; - for (Function::aiterator AI1 = LF->abegin(); AI1 != LF->aend(); ++AI1) + for (Function::arg_iterator AI1 = LF->arg_begin(); AI1 != LF->arg_end(); ++AI1) if (DS::isPointerType(AI1->getType())) ArgNodes.push_back(MergedG.getNodeForValue(AI1)); @@ -254,7 +254,7 @@ void EquivClassGraphs::buildIndirectFunctionSets(Module &M) { // Merge the function arguments with all argument nodes found so far. // If there are extra function args, add them to the vector of argNodes - Function::aiterator AI2 = F->abegin(), AI2end = F->aend(); + Function::arg_iterator AI2 = F->arg_begin(), AI2end = F->arg_end(); for (unsigned arg=0, numArgs = ArgNodes.size(); arg != numArgs && AI2 != AI2end; ++AI2, ++arg) if (DS::isPointerType(AI2->getType())) |