diff options
author | Ian Lance Taylor <iant@google.com> | 2007-12-18 21:24:10 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-12-18 21:24:10 +0000 |
commit | 38c5e8b493ec72879187ffca3d8533acd2c014a5 (patch) | |
tree | da1699c0936f8c22611469fe0bafae8e117a6658 /gold/layout.cc | |
parent | cb2dde36a0abb8f59c950187153a245264759fa1 (diff) | |
download | gdb-38c5e8b493ec72879187ffca3d8533acd2c014a5.zip gdb-38c5e8b493ec72879187ffca3d8533acd2c014a5.tar.gz gdb-38c5e8b493ec72879187ffca3d8533acd2c014a5.tar.bz2 |
Print statistics about merge sections with --stats.
Diffstat (limited to 'gold/layout.cc')
-rw-r--r-- | gold/layout.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/layout.cc b/gold/layout.cc index 71e3ab4..ff0425d 100644 --- a/gold/layout.cc +++ b/gold/layout.cc @@ -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. |