Merge pull request #137 from spiro-trikaliotis/notemittinglabels-alancox
Fix for: cc65 forgetting to emit labels (Alan Cox)
This commit is contained in:
@@ -268,7 +268,9 @@ void EnterFunctionLevel (void)
|
|||||||
TagTab = S;
|
TagTab = S;
|
||||||
|
|
||||||
/* Create and assign a new label table */
|
/* Create and assign a new label table */
|
||||||
LabelTab = NewSymTable (SYMTAB_SIZE_LABEL);
|
S = NewSymTable (SYMTAB_SIZE_LABEL);
|
||||||
|
S->PrevTab = LabelTab;
|
||||||
|
LabelTab = S;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -286,6 +288,7 @@ void RememberFunctionLevel (struct FuncDesc* F)
|
|||||||
/* Don't delete the tables */
|
/* Don't delete the tables */
|
||||||
SymTab = SymTab->PrevTab;
|
SymTab = SymTab->PrevTab;
|
||||||
TagTab = TagTab->PrevTab;
|
TagTab = TagTab->PrevTab;
|
||||||
|
LabelTab = LabelTab->PrevTab;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user