aboutsummaryrefslogtreecommitdiff
path: root/gold/stringpool.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-09-21 06:12:32 +0000
committerIan Lance Taylor <iant@google.com>2007-09-21 06:12:32 +0000
commita8b2552e073964232f2831644fef18c6a7fa52ae (patch)
treec15509bb4ac088197ea67815243fd979dac549c5 /gold/stringpool.h
parentca3a67a5cf313a093f28624258b1fd2201d1835e (diff)
downloadfsf-binutils-gdb-a8b2552e073964232f2831644fef18c6a7fa52ae.zip
fsf-binutils-gdb-a8b2552e073964232f2831644fef18c6a7fa52ae.tar.gz
fsf-binutils-gdb-a8b2552e073964232f2831644fef18c6a7fa52ae.tar.bz2
Set Stringpool zero_null option via a call, not a default constructor
argument.
Diffstat (limited to 'gold/stringpool.h')
-rw-r--r--gold/stringpool.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/gold/stringpool.h b/gold/stringpool.h
index cdd36e7..11e9736 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.