mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
s/Method/Function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2036 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -216,7 +216,7 @@ bool Interpreter::callMethod(const string &Name) {
|
||||
std::vector<Value*> Options = LookupMatchingNames(Name);
|
||||
|
||||
for (unsigned i = 0; i < Options.size(); ++i) { // Remove nonmethod matches...
|
||||
if (!isa<Method>(Options[i])) {
|
||||
if (!isa<Function>(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<Method>(PickedMeth);
|
||||
Function *F = cast<Function>(PickedMeth);
|
||||
|
||||
std::vector<GenericValue> 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<Value*> Options = LookupMatchingNames(Name);
|
||||
|
||||
for (unsigned i = 0; i < Options.size(); ++i) { // Remove nonmethod matches...
|
||||
if (!isa<Method>(Options[i])) {
|
||||
if (!isa<Function>(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<Method>(PickedMeth);
|
||||
const MethodType *MT = M->getMethodType();
|
||||
Function *M = cast<Function>(PickedMeth);
|
||||
const FunctionType *MT = M->getFunctionType();
|
||||
|
||||
std::vector<GenericValue> Args;
|
||||
switch (MT->getParamTypes().size()) {
|
||||
|
||||
Reference in New Issue
Block a user