[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp

Alkis Evlogimenos alkis at cs.uiuc.edu
Mon Mar 14 23:38:44 PST 2005



Changes in directory llvm-java/lib/Compiler:

Compiler.cpp updated: 1.227 -> 1.228
---
Log message:

Stop using aiterator, abegin, and aend.


---
Diffs of the changes:  (+4 -4)

 Compiler.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.227 llvm-java/lib/Compiler/Compiler.cpp:1.228
--- llvm-java/lib/Compiler/Compiler.cpp:1.227	Tue Mar 15 01:25:12 2005
+++ llvm-java/lib/Compiler/Compiler.cpp	Tue Mar 15 01:38:33 2005
@@ -1324,8 +1324,8 @@
         params.push_back(JNIEnvPtr_);
         if (method->isStatic())
           params.push_back(llvm::Constant::getNullValue(ObjectBaseRefTy));
-        for (Function::aiterator A = function->abegin(), E = function->aend();
-             A != E; ++A) {
+        for (Function::arg_iterator A = function->arg_begin(),
+               E = function->arg_end(); A != E; ++A) {
           params.push_back(
             new CastInst(A, jniFuncTy->getParamType(params.size()), TMP, bb));
         }
@@ -1377,8 +1377,8 @@
       locals_ = Locals(codeAttr->getMaxLocals());
 
       unsigned index = 0;
-      for (Function::aiterator
-             a = function->abegin(), ae = function->aend(); a != ae; ++a) {
+      for (Function::arg_iterator a = function->arg_begin(),
+             ae = function->arg_end(); a != ae; ++a) {
         locals_.store(index, a, &function->getEntryBlock());
         index += isTwoSlotType(a->getType()) ? 2 : 1;
       }






More information about the llvm-commits mailing list