diff options
Diffstat (limited to 'gold/symtab.cc')
-rw-r--r-- | gold/symtab.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gold/symtab.cc b/gold/symtab.cc index 9187f32..770628c 100644 --- a/gold/symtab.cc +++ b/gold/symtab.cc @@ -295,10 +295,11 @@ Symbol::final_value_is_known() const // Class Symbol_table. -Symbol_table::Symbol_table() - : saw_undefined_(0), offset_(0), table_(), namepool_(), +Symbol_table::Symbol_table(unsigned int count) + : saw_undefined_(0), offset_(0), table_(count), namepool_(), forwarders_(), commons_(), warnings_() { + namepool_.reserve(count); } Symbol_table::~Symbol_table() |