summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
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
commit1f01726487df64bb908ffe373bebe3b31e6e547b (patch)
tree46dfa93929f8493b5c9a6db11e2f10c58da46bc0 /llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
parent7db7958bd4c68808e95a8dcb77bf25d994228fe9 (diff)
downloadbcm5719-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/Interpreter.h')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Interpreter.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
index bfce4c2b1dc..23354e38184 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
+++ b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
@@ -10,6 +10,9 @@
#include "llvm/Module.h"
#include "llvm/Method.h"
#include "llvm/Support/DataTypes.h"
+#include "llvm/Assembly/CachedWriter.h"
+
+extern CachedWriter CW; // Object to accellerate printing of LLVM
struct MethodInfo; // Defined in ExecutionAnnotations.h
class CallInst;
@@ -65,7 +68,7 @@ class Interpreter {
public:
Interpreter();
- inline ~Interpreter() { delete CurMod; }
+ inline ~Interpreter() { CW.setModule(0); delete CurMod; }
// getExitCode - return the code that should be the exit code for the lli
// utility.
OpenPOWER on IntegriCloud