aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/Interpreter/UserInput.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-14 14:21:30 +0000
committerChris Lattner <sabre@nondot.org>2003-05-14 14:21:30 +0000
commit44edb6bdd2edc48eb31ed160a09006b610cead67 (patch)
tree15e78604c92945363480b2b80937f38a9f934816 /lib/ExecutionEngine/Interpreter/UserInput.cpp
parent22080f9f168b0129d0ed3a2a29a145e17723c3ba (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/UserInput.cpp')
-rw-r--r--lib/ExecutionEngine/Interpreter/UserInput.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/Interpreter/UserInput.cpp b/lib/ExecutionEngine/Interpreter/UserInput.cpp
index 0ed0f04b15..3f4493d19b 100644
--- a/lib/ExecutionEngine/Interpreter/UserInput.cpp
+++ b/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();
}
//===----------------------------------------------------------------------===//