From f94811af1370eca437415883ca16eaa3e528a787 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 29 Mar 2002 03:57:15 +0000 Subject: s/Method/Function llvm-svn: 2036 --- llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp') diff --git a/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp b/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp index a37224b1b1c..99ee6ecaf71 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp @@ -216,7 +216,7 @@ bool Interpreter::callMethod(const string &Name) { std::vector Options = LookupMatchingNames(Name); for (unsigned i = 0; i < Options.size(); ++i) { // Remove nonmethod matches... - if (!isa(Options[i])) { + if (!isa(Options[i])) { Options.erase(Options.begin()+i); --i; } @@ -226,12 +226,12 @@ bool Interpreter::callMethod(const string &Name) { if (PickedMeth == 0) return true; - Method *M = cast(PickedMeth); + Function *F = cast(PickedMeth); std::vector Args; // TODO, get args from user... - callMethod(M, Args); // Start executing it... + callMethod(F, Args); // Start executing it... // Reset the current frame location to the top of stack CurFrame = ECStack.size()-1; @@ -264,7 +264,7 @@ bool Interpreter::callMainMethod(const string &Name, std::vector Options = LookupMatchingNames(Name); for (unsigned i = 0; i < Options.size(); ++i) { // Remove nonmethod matches... - if (!isa(Options[i])) { + if (!isa(Options[i])) { Options.erase(Options.begin()+i); --i; } @@ -274,8 +274,8 @@ bool Interpreter::callMainMethod(const string &Name, if (PickedMeth == 0) return true; - Method *M = cast(PickedMeth); - const MethodType *MT = M->getMethodType(); + Function *M = cast(PickedMeth); + const FunctionType *MT = M->getFunctionType(); std::vector Args; switch (MT->getParamTypes().size()) { -- cgit v1.2.3