summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-09 19:59:31 +0000
committerChris Lattner <sabre@nondot.org>2002-04-09 19:59:31 +0000
commit87b84e474fc4a4fca7200c0d647934486705f7af (patch)
treec49b93c3d2c08e27667eb0318e9857ec7f8ccb27 /llvm/lib/ExecutionEngine
parent2e9fa6d10146e29690da9c1954f7d699ca719147 (diff)
downloadbcm5719-llvm-87b84e474fc4a4fca7200c0d647934486705f7af.tar.gz
bcm5719-llvm-87b84e474fc4a4fca7200c0d647934486705f7af.zip
Move FunctionArgument out of iOther.h into Argument.h and rename class to
be 'Argument' instead of FunctionArgument. llvm-svn: 2217
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Execution.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
index 484dbe2ee6c..91f3e891447 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -1029,7 +1029,7 @@ MethodInfo::MethodInfo(Function *M) : Annotation(MethodInfoAID) {
const Function::ArgumentListType &ArgList = M->getArgumentList();
for (Function::ArgumentListType::const_iterator AI = ArgList.begin(),
AE = ArgList.end(); AI != AE; ++AI)
- (*AI)->addAnnotation(new SlotNumber(getValueSlot(*AI)));
+ ((Value*)(*AI))->addAnnotation(new SlotNumber(getValueSlot((Value*)*AI)));
// Iterate over all of the instructions...
unsigned InstNum = 0;
@@ -1114,9 +1114,9 @@ void Interpreter::callMethod(Function *M, const vector<GenericValue> &ArgVals) {
assert(ArgVals.size() == M->getArgumentList().size() &&
"Invalid number of values passed to function invocation!");
unsigned i = 0;
- for (Function::ArgumentListType::iterator MI = M->getArgumentList().begin(),
- ME = M->getArgumentList().end(); MI != ME; ++MI, ++i) {
- SetValue(*MI, ArgVals[i], StackFrame);
+ for (Function::ArgumentListType::iterator AI = M->getArgumentList().begin(),
+ AE = M->getArgumentList().end(); AI != AE; ++AI, ++i) {
+ SetValue((Value*)*AI, ArgVals[i], StackFrame);
}
}
@@ -1360,7 +1360,8 @@ void Interpreter::printStackFrame(int FrameNo = -1) {
if (i != 0) cout << ", ";
CW << (Value*)Args[i] << "=";
- printValue(Args[i]->getType(), getOperandValue(Args[i], ECStack[FrameNo]));
+ printValue(((Value*)Args[i])->getType(),
+ getOperandValue((Value*)Args[i], ECStack[FrameNo]));
}
cout << ")\n";
OpenPOWER on IntegriCloud