diff options
author | Chris Lattner <sabre@nondot.org> | 2001-11-07 04:23:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-11-07 04:23:00 +0000 |
commit | 1f01726487df64bb908ffe373bebe3b31e6e547b (patch) | |
tree | 46dfa93929f8493b5c9a6db11e2f10c58da46bc0 /llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp | |
parent | 7db7958bd4c68808e95a8dcb77bf25d994228fe9 (diff) | |
download | bcm5719-llvm-1f01726487df64bb908ffe373bebe3b31e6e547b.tar.gz bcm5719-llvm-1f01726487df64bb908ffe373bebe3b31e6e547b.zip |
* 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
llvm-svn: 1169
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp b/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp index 49fd5e4bc17..a1518d413e0 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp +++ b/llvm/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; |