mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-12 14:20:55 +00:00
* 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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user