Change from Method to Function
authorChris Lattner <sabre@nondot.org>
Tue, 26 Mar 2002 18:02:30 +0000 (18:02 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 26 Mar 2002 18:02:30 +0000 (18:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1992 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Interpreter/Execution.cpp
lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h

index 8b910f68af9ec35fc1bd85e7f1f31bc795ba92b5..2260625b66b8025a1b318f5d10f5c71d88711e83 100644 (file)
@@ -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;
index 12717ec48e0cd0484d746e2def69c936927e0a5b..537d18c35a9ea947889f7d81f885ec5548bae040 100644 (file)
@@ -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