aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commite06e9146eeb48e3ebf0f30bdaf7d86a6e03946ad (patch)
tree88c367a169fcecba357d0eef998e9b7e7cabd4b0 /lib
parent73e214244f2403b5ba0ef81b8839600f3c8ffebc (diff)
downloadexternal_llvm-e06e9146eeb48e3ebf0f30bdaf7d86a6e03946ad.zip
external_llvm-e06e9146eeb48e3ebf0f30bdaf7d86a6e03946ad.tar.gz
external_llvm-e06e9146eeb48e3ebf0f30bdaf7d86a6e03946ad.tar.bz2
Move FunctionArgument out of iOther.h into Argument.h and rename class to
be 'Argument' instead of FunctionArgument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2217 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/ExecutionEngine/Interpreter/Execution.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp
index 484dbe2..91f3e89 100644
--- a/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/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";