aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-26 18:02:30 +0000
committerChris Lattner <sabre@nondot.org>2002-03-26 18:02:30 +0000
commit9a3d69649ae8cb28d5ab38b949f656187a4f140d (patch)
tree30a92513f68745bc0fcf4063e1a425bd55562be2 /lib/ExecutionEngine
parent79df7c0aaa18129e55968c8783ef8346807bd4af (diff)
downloadexternal_llvm-9a3d69649ae8cb28d5ab38b949f656187a4f140d.zip
external_llvm-9a3d69649ae8cb28d5ab38b949f656187a4f140d.tar.gz
external_llvm-9a3d69649ae8cb28d5ab38b949f656187a4f140d.tar.bz2
Change from Method to Function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1992 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/Interpreter/Execution.cpp6
-rw-r--r--lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h3
2 files changed, 4 insertions, 5 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp
index 8b910f6..2260625 100644
--- a/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -1028,10 +1028,8 @@ MethodInfo::MethodInfo(Method *M) : Annotation(MethodInfoAID) {
// Assign slot numbers to the method arguments...
const Method::ArgumentListType &ArgList = M->getArgumentList();
for (Method::ArgumentListType::const_iterator AI = ArgList.begin(),
- AE = ArgList.end(); AI != AE; ++AI) {
- MethodArgument *MA = *AI;
- MA->addAnnotation(new SlotNumber(getValueSlot(MA)));
- }
+ AE = ArgList.end(); AI != AE; ++AI)
+ (*AI)->addAnnotation(new SlotNumber(getValueSlot(*AI)));
// Iterate over all of the instructions...
unsigned InstNum = 0;
diff --git a/lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h b/lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h
index 12717ec..537d18c 100644
--- a/lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h
+++ b/lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h
@@ -38,11 +38,12 @@ private:
unsigned getValueSlot(const Value *V);
};
+
//===----------------------------------------------------------------------===//
// Support for the SlotNumber annotation
//===----------------------------------------------------------------------===//
-// This annotation (attached only to MethodArgument & Instruction objects) is
+// This annotation (attached only to FunctionArgument & Instruction objects) is
// used to hold the the slot number for the value in its type plane.
//
// Entities have this annotation attached to them when the containing