summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-15 04:54:21 +0000
committerChris Lattner <sabre@nondot.org>2005-03-15 04:54:21 +0000
commit531f9e92d4d06d5cb1f250754c68e7d3b420df50 (patch)
tree741411707d21f866eb629b2449413d85b8b48667 /llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
parent5ce25cdc6d8d274d9106280d861adaf4743e5f3d (diff)
downloadbcm5719-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/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Execution.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
index 9037ab64103..ff356796f3a 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -1065,13 +1065,13 @@ void Interpreter::callFunction(Function *F,
StackFrame.CurInst = StackFrame.CurBB->begin();
// Run through the function arguments and initialize their values...
- assert((ArgVals.size() == F->asize() ||
- (ArgVals.size() > F->asize() && F->getFunctionType()->isVarArg())) &&
+ assert((ArgVals.size() == F->arg_size() ||
+ (ArgVals.size() > F->arg_size() && F->getFunctionType()->isVarArg())) &&
"Invalid number of values passed to function invocation!");
// Handle non-varargs arguments...
unsigned i = 0;
- for (Function::aiterator AI = F->abegin(), E = F->aend(); AI != E; ++AI, ++i)
+ for (Function::arg_iterator AI = F->arg_begin(), E = F->arg_end(); AI != E; ++AI, ++i)
SetValue(AI, ArgVals[i], StackFrame);
// Handle varargs arguments...
OpenPOWER on IntegriCloud