diff options
author | Ian Lance Taylor <iant@google.com> | 2007-09-21 06:12:32 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-09-21 06:12:32 +0000 |
commit | a8b2552e073964232f2831644fef18c6a7fa52ae (patch) | |
tree | c15509bb4ac088197ea67815243fd979dac549c5 /gold/stringpool.h | |
parent | ca3a67a5cf313a093f28624258b1fd2201d1835e (diff) | |
download | binutils-gdb-a8b2552e073964232f2831644fef18c6a7fa52ae.tar.gz |
Set Stringpool zero_null option via a call, not a default constructor
argument.
Diffstat (limited to 'gold/stringpool.h')
-rw-r--r-- | gold/stringpool.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gold/stringpool.h b/gold/stringpool.h index cdd36e7b9dd..11e97368bf9 100644 --- a/gold/stringpool.h +++ b/gold/stringpool.h @@ -58,14 +58,18 @@ class Stringpool_template // is never a valid key value. typedef size_t Key; - // Create a Stringpool. ZERO_NULL is true if we should reserve - // offset 0 to hold the empty string when converting the stringpool - // to a string table. ZERO_NULL should be true if you want a proper - // ELF SHT_STRTAB section. - Stringpool_template(bool zero_null = true); + // Create a Stringpool. + Stringpool_template(); ~Stringpool_template(); + // 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. + void + set_no_zero_null() + { this->zero_null_ = false; } + // Add the string S to the pool. This returns a canonical permanent // pointer to the string in the pool. If PKEY is not NULL, this // sets *PKEY to the key for the string. |