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:
@@ -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 */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user