Write spans out in a separate object file section. This allows to merge

duplicate spans in an object file and more extensions to come.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5250 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-08-21 19:08:23 +00:00
parent 37ac033370
commit 358ccf236e
18 changed files with 396 additions and 111 deletions

View File

@@ -235,7 +235,7 @@ void SymEnterLevel (const StrBuf* ScopeName, unsigned char Type,
* space in any segment).
*/
if (CurrentScope->Type <= SCOPE_HAS_DATA) {
OpenSpans (&CurrentScope->Spans);
OpenSpanList (&CurrentScope->Spans);
}
}
@@ -248,7 +248,7 @@ void SymLeaveLevel (void)
* open the spans.
*/
if (CurrentScope->Type <= SCOPE_HAS_DATA) {
CloseSpans (&CurrentScope->Spans);
CloseSpanList (&CurrentScope->Spans);
}
/* If we have spans, the first one is the segment that was active, when the
@@ -983,7 +983,7 @@ void WriteScopes (void)
}
/* Spans for this scope */
WriteSpans (&S->Spans);
WriteSpanList (&S->Spans);
/* Next scope */
S = S->Next;