diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-30 20:28:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-30 20:28:23 +0000 |
commit | 5deea3c5c5d71acf140b0df9488126e3c67e4a0a (patch) | |
tree | 8ca4b128b767c637a4002e3491bb23838427774c /lib/ExecutionEngine/Interpreter/Interpreter.h | |
parent | 4721f1304f3d49e44c78c9eed882a34ad7388be0 (diff) |
callExternalMethod now returns the return value of the function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1048 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Interpreter.h')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/Interpreter.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.h b/lib/ExecutionEngine/Interpreter/Interpreter.h index 2d262aedc5..bfce4c2b1d 100644 --- a/lib/ExecutionEngine/Interpreter/Interpreter.h +++ b/lib/ExecutionEngine/Interpreter/Interpreter.h @@ -75,7 +75,6 @@ public: void enableProfiling() { Profile = true; } void enableTracing() { Trace = true; } - void initializeExecutionEngine(); void handleUserInput(); // User Interation Methods... @@ -97,7 +96,6 @@ public: // Code execution methods... void callMethod (Method *Meth, const vector<GenericValue> &ArgVals); - void callExternalMethod(Method *Meth, const vector<GenericValue> &ArgVals); bool executeInstruction(); // Execute one instruction... void stepInstruction(); // Do the 'step' command @@ -110,6 +108,8 @@ public: void executeRetInst(ReturnInst *I, ExecutionContext &SF); void executeBrInst(BranchInst *I, ExecutionContext &SF); void executeAllocInst(AllocationInst *I, ExecutionContext &SF); + GenericValue callExternalMethod(Method *Meth, + const vector<GenericValue> &ArgVals); void exitCalled(GenericValue GV); // getCurrentMethod - Return the currently executing method @@ -145,6 +145,10 @@ private: // Helper functions // option is provided, just return that option. // Value *ChooseOneOption(const string &Name, const vector<Value*> &Opts); + + + void initializeExecutionEngine(); + void initializeExternalMethods(); }; #endif |