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:
@@ -323,9 +323,6 @@ void ObjAdd (FILE* Obj, const char* Name)
|
||||
/* Read the files list from the object file */
|
||||
ObjReadFiles (Obj, O->Header.FileOffs, O);
|
||||
|
||||
/* Read the spans from the object file */
|
||||
ObjReadSpans (Obj, O->Header.SpanOffs, O);
|
||||
|
||||
/* Read the line infos from the object file */
|
||||
ObjReadLineInfos (Obj, O->Header.LineInfoOffs, O);
|
||||
|
||||
@@ -352,6 +349,9 @@ void ObjAdd (FILE* Obj, const char* Name)
|
||||
*/
|
||||
ObjReadScopes (Obj, O->Header.ScopeOffs, O);
|
||||
|
||||
/* Read the spans from the object file */
|
||||
ObjReadSpans (Obj, O->Header.SpanOffs, O);
|
||||
|
||||
/* Mark this object file as needed */
|
||||
O->Flags |= OBJ_REF;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user