Print statistics about merge sections with --stats.

This commit is contained in:
Ian Lance Taylor
2007-12-18 21:24:10 +00:00
parent cb2dde36a0
commit 38c5e8b493
5 changed files with 124 additions and 1 deletions

View File

@@ -2062,6 +2062,11 @@ Layout::print_stats() const
this->namepool_.print_stats("section name pool");
this->sympool_.print_stats("output symbol name pool");
this->dynpool_.print_stats("dynamic name pool");
for (Section_list::const_iterator p = this->section_list_.begin();
p != this->section_list_.end();
++p)
(*p)->print_merge_stats();
}
// Write_sections_task methods.