diff options
Diffstat (limited to 'gold/layout.cc')
-rw-r--r-- | gold/layout.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gold/layout.cc b/gold/layout.cc index 39008cd..1139cf1 100644 --- a/gold/layout.cc +++ b/gold/layout.cc @@ -1958,6 +1958,16 @@ Layout::write_sections_after_input_sections(Output_file* of) this->section_headers_->write(of); } +// Print statistical information to stderr. This is used for --stats. + +void +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"); +} + // Write_sections_task methods. // We can always run this task. |