S->GuessedUse[I] = 0;
}
S->Flags = Flags;
+ S->DebugSymId = ~0U;
S->ImportId = ~0U;
S->Expr = 0;
S->ExprRefs = AUTO_COLLECTION_INITIALIZER;
* addressing
*/
unsigned Flags; /* Symbol flags */
- unsigned ImportId; /* Id if imported symbol */
+ unsigned DebugSymId; /* Debug symbol id */
+ unsigned ImportId; /* Id of import if this is one */
struct ExprNode* Expr; /* Symbol expression */
Collection ExprRefs; /* Expressions using this symbol */
unsigned char ExportSize; /* Export address size */
/* Check if debug info is requested */
if (DbgSyms) {
- /* Walk through the list and count the symbols */
+ /* Walk through the list, give each symbol an id and count them */
Count = 0;
S = SymList;
while (S) {
if ((S->Flags & SF_DBGINFOMASK) == SF_DBGINFOVAL) {
- ++Count;
+ S->DebugSymId = Count++;
}
S = S->List;
}
-
-