* 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
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.h b/lib/ExecutionEngine/Interpreter/Interpreter.h
index bfce4c2..23354e3 100644
--- a/lib/ExecutionEngine/Interpreter/Interpreter.h
+++ b/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 @@
 
 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.