summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-27 04:15:57 +0000
committerChris Lattner <sabre@nondot.org>2001-10-27 04:15:57 +0000
commit15157b88e9628f962bb2d1d768ef02f0dc8672d1 (patch)
tree3cd99efb2c6021c5fecfdc8cffb24a04298aa6bc /llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
parent0863c161e9431eec93c6c6e318748019dfb4fed2 (diff)
downloadbcm5719-llvm-15157b88e9628f962bb2d1d768ef02f0dc8672d1.tar.gz
bcm5719-llvm-15157b88e9628f962bb2d1d768ef02f0dc8672d1.zip
* Implement exit() builtin function
* Implement linked in runtime library with puts(char*) in it * implement builtin putchar(int) function llvm-svn: 985
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Interpreter.h')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Interpreter.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
index 8c2f32566a5..d9a6834128d 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
+++ b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
@@ -108,6 +108,7 @@ public:
void executeRetInst(ReturnInst *I, ExecutionContext &SF);
void executeBrInst(BranchInst *I, ExecutionContext &SF);
void executeAllocInst(AllocationInst *I, ExecutionContext &SF);
+ void exitCalled(GenericValue GV);
// getCurrentMethod - Return the currently executing method
inline Method *getCurrentMethod() const {
@@ -120,6 +121,11 @@ public:
inline bool isStopped() const { return !ECStack.empty(); }
private: // Helper functions
+ // getCurrentExecutablePath() - Return the directory that the lli executable
+ // lives in.
+ //
+ string getCurrentExecutablePath() const;
+
// printCurrentInstruction - Print out the instruction that the virtual PC is
// at, or fail silently if no program is running.
//
OpenPOWER on IntegriCloud