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 | 44edb6bdd2edc48eb31ed160a09006b610cead67 (patch) | |
tree | 15e78604c92945363480b2b80937f38a9f934816 /lib/ExecutionEngine/Interpreter/Execution.cpp | |
parent | 22080f9f168b0129d0ed3a2a29a145e17723c3ba (diff) |
Add support for atexit function, remove support for __main function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6194 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/Execution.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index f03514dba2..44c1e48c33 100644 --- a/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/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; } |