aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-12-05 00:48:49 +0000
committerIan Lance Taylor <iant@google.com>2007-12-05 00:48:49 +0000
commitad8f37d1ba63a4d799f35e2244b2facb0fedf59b (patch)
tree482c8bc7b18aa41c439f40f4d1dbe42a9229442b /gold/layout.cc
parent055f1d8ffcf99cdc50eb47e5cbfae62635b5c041 (diff)
downloadfsf-binutils-gdb-ad8f37d1ba63a4d799f35e2244b2facb0fedf59b.zip
fsf-binutils-gdb-ad8f37d1ba63a4d799f35e2244b2facb0fedf59b.tar.gz
fsf-binutils-gdb-ad8f37d1ba63a4d799f35e2244b2facb0fedf59b.tar.bz2
Stringpool stats. Also make Symbol_table support functions inline.
Diffstat (limited to 'gold/layout.cc')
-rw-r--r--gold/layout.cc10
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.