From 4a5bb95729a5335bfdddd401454003ac05ba4316 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 14 May 2003 14:21:30 +0000 Subject: Add support for atexit function, remove support for __main function llvm-svn: 6194 --- llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp') diff --git a/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp b/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp index 0ed0f04b15b..3f4493d19be 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp @@ -115,7 +115,7 @@ void Interpreter::handleUserInput() { case Call: std::cin >> Command; callFunction(Command); // Enter the specified function - finish(); // Run until it's complete + finish(); // Run until it's complete break; case TraceOpt: @@ -129,6 +129,7 @@ void Interpreter::handleUserInput() { } } while (!UserQuit); + AtExitHandlers.clear(); } //===----------------------------------------------------------------------===// -- cgit v1.2.3