Do not resolve the lists of spans for LineInfos and Scopes, but keep them as
ids. This way, we can delay loading spans until we know that we definitely need an object file. Did some restructuring for writing of span lists to the debug info file. git-svn-id: svn://svn.cc65.org/cc65/trunk@5261 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -245,9 +245,6 @@ static void ReadBasicData (Library* L, ObjData* O)
|
||||
/* Read the files list */
|
||||
ObjReadFiles (L->F, O->Start + O->Header.FileOffs, O);
|
||||
|
||||
/* Read the spans */
|
||||
ObjReadSpans (L->F, O->Start + O->Header.SpanOffs, O);
|
||||
|
||||
/* Read the line infos */
|
||||
ObjReadLineInfos (L->F, O->Start + O->Header.LineInfoOffs, O);
|
||||
|
||||
@@ -411,6 +408,9 @@ static void LibResolve (void)
|
||||
*/
|
||||
ObjReadScopes (L->F, O->Start + O->Header.ScopeOffs, O);
|
||||
|
||||
/* Read the spans */
|
||||
ObjReadSpans (L->F, O->Start + O->Header.SpanOffs, O);
|
||||
|
||||
/* All references to strings are now resolved, so we can delete
|
||||
* the module string pool.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user