[llvm-commits] CVS: llvm/tools/bugpoint/Miscompilation.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Mon Mar 14 23:02:37 PST 2005
Changes in directory llvm/tools/bugpoint:
Miscompilation.cpp updated: 1.60 -> 1.61
---
Log message:
Use arg_iterator and arg_begin and arg_end functions.
---
Diffs of the changes: (+5 -4)
Miscompilation.cpp | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
Index: llvm/tools/bugpoint/Miscompilation.cpp
diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.60 llvm/tools/bugpoint/Miscompilation.cpp:1.61
--- llvm/tools/bugpoint/Miscompilation.cpp:1.60 Sun Feb 27 00:18:25 2005
+++ llvm/tools/bugpoint/Miscompilation.cpp Tue Mar 15 01:02:26 2005
@@ -624,8 +624,9 @@
oldMain->getName(), Test);
// Set up and remember the argument list for the main function.
std::vector<Value*> args;
- for (Function::aiterator I = newMain->abegin(), E = newMain->aend(),
- OI = oldMain->abegin(); I != E; ++I, ++OI) {
+ for (Function::arg_iterator
+ I = newMain->arg_begin(), E = newMain->arg_end(),
+ OI = oldMain->arg_begin(); I != E; ++I, ++OI) {
I->setName(OI->getName()); // Copy argument names from oldMain
args.push_back(I);
}
@@ -700,8 +701,8 @@
// Save the argument list
std::vector<Value*> Args;
- for (Function::aiterator i = FuncWrapper->abegin(),
- e = FuncWrapper->aend(); i != e; ++i)
+ for (Function::arg_iterator i = FuncWrapper->arg_begin(),
+ e = FuncWrapper->arg_end(); i != e; ++i)
Args.push_back(i);
// Pass on the arguments to the real function, return its result
More information about the llvm-commits
mailing list