summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-30 20:28:23 +0000
committerChris Lattner <sabre@nondot.org>2001-10-30 20:28:23 +0000
commit8bd5c77731178679164f66915b30f4e3f677b1cf (patch)
tree83770ec50fb37c93363211955419af2a3cfbee36 /llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
parent7fd51b54e51b6ff8c3ae3fc341577dd665456add (diff)
downloadbcm5719-llvm-8bd5c77731178679164f66915b30f4e3f677b1cf.tar.gz
bcm5719-llvm-8bd5c77731178679164f66915b30f4e3f677b1cf.zip
callExternalMethod now returns the return value of the function
llvm-svn: 1048
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Interpreter.h')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Interpreter.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
index 2d262aedc5d..bfce4c2b1dc 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
+++ b/llvm/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
OpenPOWER on IntegriCloud