diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2005-03-15 07:02:26 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2005-03-15 07:02:26 +0000 |
commit | 5a1c58d0094ff16dcd103f3752046d426ad5dd2c (patch) | |
tree | 0a0fe4fa23b2296f45b35cde5898487778b6b6c9 /tools/bugpoint/Miscompilation.cpp | |
parent | e801408561490073953115bc78b8a14b51fde262 (diff) |
Use arg_iterator and arg_begin and arg_end functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20608 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/Miscompilation.cpp')
-rw-r--r-- | tools/bugpoint/Miscompilation.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp index b1707042b8..31b75d0300 100644 --- a/tools/bugpoint/Miscompilation.cpp +++ b/tools/bugpoint/Miscompilation.cpp @@ -624,8 +624,9 @@ static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test, 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 @@ static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test, // 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 |