Added the LineInfo count to the info line of the debug info file. This allows

the debug info module to reduce memory usage.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5265 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-08-22 21:52:40 +00:00
parent 3b61ee2f5a
commit 1e0ab407cd
3 changed files with 37 additions and 13 deletions

View File

@@ -177,6 +177,26 @@ const LineInfo* GetAsmLineInfo (const Collection* LineInfos)
unsigned LineInfoCount (void)
/* Return the total number of line infos */
{
/* Walk over all object files */
unsigned I;
unsigned Count = 0;
for (I = 0; I < CollCount (&ObjDataList); ++I) {
/* Get this object file */
const ObjData* O = CollAtUnchecked (&ObjDataList, I);
/* Count spans */
Count += CollCount (&O->LineInfos);
}
return Count;
}
void AssignLineInfoIds (void)
/* Assign the ids to the line infos */
{