Do not add optimized away local variables to dbj file
This commit is contained in:
parent
78e48c75fd
commit
4c8d7a08d0
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue