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/Transforms/Scalar/GCSE.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/Transforms/Scalar/GCSE.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/GCSE.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/GCSE.cpp b/llvm/lib/Transforms/Scalar/GCSE.cpp index 533a9e8b23c..dbabe2686b5 100644 --- a/llvm/lib/Transforms/Scalar/GCSE.cpp +++ b/llvm/lib/Transforms/Scalar/GCSE.cpp @@ -73,7 +73,7 @@ bool GCSE::runOnFunction(Function &F) { // Check for value numbers of arguments. If the value numbering // implementation can prove that an incoming argument is a constant or global // value address, substitute it, making the argument dead. - for (Function::aiterator AI = F.abegin(), E = F.aend(); AI != E; ++AI) + for (Function::arg_iterator AI = F.arg_begin(), E = F.arg_end(); AI != E; ++AI) if (!AI->use_empty()) { VN.getEqualNumberNodes(AI, EqualValues); if (!EqualValues.empty()) { |