aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/Interpreter/UserInput.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-11-07 04:23:00 +0000
committerChris Lattner <sabre@nondot.org>2001-11-07 04:23:00 +0000
commit5af0c4803b7064938dabc4c7275dcfb231e814ae (patch)
tree9f563f376a65d3b4954435f7374ac66468ccfd66 /lib/ExecutionEngine/Interpreter/UserInput.cpp
parentda1fbcc5c389e86840f6131afc22b45ce7e9ad08 (diff)
* Use cached writer to speed up printing and get symbolic types more consistently
* When a segfault or bus error occurs, stop the program, print a stack trace, and dump the user in the debugger mode git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/UserInput.cpp')
-rw-r--r--lib/ExecutionEngine/Interpreter/UserInput.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/Interpreter/UserInput.cpp b/lib/ExecutionEngine/Interpreter/UserInput.cpp
index 49fd5e4bc1..a1518d413e 100644
--- a/lib/ExecutionEngine/Interpreter/UserInput.cpp
+++ b/lib/ExecutionEngine/Interpreter/UserInput.cpp
@@ -153,6 +153,7 @@ void Interpreter::loadModule(const string &Filename) {
<< ErrorMsg << "\n";
return;
}
+ CW.setModule(CurMod); // Update Writer
string RuntimeLib = getCurrentExecutablePath();
if (!RuntimeLib.empty()) RuntimeLib += "/";
@@ -185,6 +186,7 @@ bool Interpreter::flushModule() {
CurFrame = -1;
}
+ CW.setModule(0);
delete CurMod;
CurMod = 0;
ExitCode = 0;