summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-10 04:49:44 +0000
committerChris Lattner <sabre@nondot.org>2001-09-10 04:49:44 +0000
commit676d4118cf71c7dc257fd9c2cd260d86220e34af (patch)
tree86df08e01ef1d63c3988036f98b50e688c076bf2 /llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp
parentf0afd8bac74a03c4d029ec2d62c2617aec746957 (diff)
downloadbcm5719-llvm-676d4118cf71c7dc257fd9c2cd260d86220e34af.tar.gz
bcm5719-llvm-676d4118cf71c7dc257fd9c2cd260d86220e34af.zip
Genericize support for calling functions a bit
Add external method support llvm-svn: 528
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp b/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp
index f0c7fe1b6b8..508bd4a3246 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp
@@ -144,7 +144,12 @@ bool Interpreter::callMethod(const string &Name) {
if (PickedMeth == 0)
return true;
- callMethod(PickedMeth->castMethodAsserting()); // Start executing it...
+ Method *M = PickedMeth->castMethodAsserting();
+
+ vector<GenericValue> Args;
+ // TODO, get args from user...
+
+ callMethod(M, Args); // Start executing it...
// Reset the current frame location to the top of stack
CurFrame = ECStack.size()-1;
OpenPOWER on IntegriCloud