diff options
Diffstat (limited to 'gold/stringpool.h')
-rw-r--r-- | gold/stringpool.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gold/stringpool.h b/gold/stringpool.h index 929b4d1..93e1ec8 100644 --- a/gold/stringpool.h +++ b/gold/stringpool.h @@ -88,6 +88,12 @@ class Stringpool_template void clear(); + // Hint to the stringpool class that you intend to insert n additional + // elements. The stringpool class can use this info however it likes; + // in practice it will resize its internal hashtables to make room. + void + reserve(unsigned int n); + // Indicate that we should not reserve offset 0 to hold the empty // string when converting the stringpool to a string table. This // should not be called for a proper ELF SHT_STRTAB section. |