From 4c8d7a08d04624b9205efcff1b0a49312230d0e7 Mon Sep 17 00:00:00 2001 From: drmortalwombat <90205530+drmortalwombat@users.noreply.github.com> Date: Tue, 11 Apr 2023 20:45:47 +0200 Subject: [PATCH] Do not add optimized away local variables to dbj file --- oscar64/Compiler.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/oscar64/Compiler.cpp b/oscar64/Compiler.cpp index 5a1fb12..35ecaa6 100644 --- a/oscar64/Compiler.cpp +++ b/oscar64/Compiler.cpp @@ -1078,6 +1078,14 @@ bool Compiler::WriteDbjFile(const char* filename) fprintf(file, "\t\t{\"name\": \"%s\", \"start\": %d, \"end\": %d, \"typeid\": %d}", v->mIdent->mString, v->mLinkerObject->mAddress, v->mLinkerObject->mAddress + v->mLinkerObject->mSize, types.IndexOrPush(v->mDeclaration->mBase)); } + else + { + // Prepared space on the stack but not used + } + } + else if (v->mTemp) + { + // Promoted to local variable } else if (p->mFramePointer) {