Do not add optimized away local variables to dbj file

This commit is contained in:
drmortalwombat 2023-04-11 20:45:47 +02:00
parent 78e48c75fd
commit 4c8d7a08d0

View File

@ -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)
{