diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-05-14 14:21:30 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-05-14 14:21:30 +0000 |
| commit | 4a5bb95729a5335bfdddd401454003ac05ba4316 (patch) | |
| tree | 607258b2be0e52186b222f3d3f17b0002b47b3e8 /llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | |
| parent | 2537ca318a65e29e085ed1f8e4f88387b21fdbad (diff) | |
| download | bcm5719-llvm-4a5bb95729a5335bfdddd401454003ac05ba4316.tar.gz bcm5719-llvm-4a5bb95729a5335bfdddd401454003ac05ba4316.zip | |
Add support for atexit function, remove support for __main function
llvm-svn: 6194
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Execution.cpp')
| -rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp index f03514dba2b..44c1e48c337 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -520,7 +520,9 @@ void Interpreter::visitBinaryOperator(BinaryOperator &I) { // Terminator Instruction Implementations //===----------------------------------------------------------------------===// -static void PerformExitStuff() { +// PerformExitStuff - Print out counters and profiling information if +// applicable... +void Interpreter::PerformExitStuff() { #ifdef PROFILE_STRUCTURE_FIELDS // Print out structure field accounting information... if (!FieldAccessCounts.empty()) { @@ -575,7 +577,6 @@ void Interpreter::exitCalled(GenericValue GV) { ExitCode = GV.SByteVal; ECStack.clear(); - PerformExitStuff(); } void Interpreter::visitReturnInst(ReturnInst &I) { @@ -609,8 +610,6 @@ void Interpreter::visitReturnInst(ReturnInst &I) { } else { ExitCode = 0; } - - PerformExitStuff(); return; } |

