diff options
author | Chris Lattner <sabre@nondot.org> | 2002-03-26 18:02:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-03-26 18:02:30 +0000 |
commit | 9a3d69649ae8cb28d5ab38b949f656187a4f140d (patch) | |
tree | 30a92513f68745bc0fcf4063e1a425bd55562be2 /lib/ExecutionEngine/Interpreter/Execution.cpp | |
parent | 79df7c0aaa18129e55968c8783ef8346807bd4af (diff) |
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/Interpreter/Execution.cpp')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/Execution.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index 8b910f68af..2260625b66 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; |