mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
PR 10133
* stringpool.h (class Stringpool_template): Add optimize_ field. (Stringpool_template::set_optimize): New function. * stringpool.cc (Stringpool_template::Stringpool_template): Initialize optimize_ field. (Stringpool_template::set_string_offsets): Test local optimize fild rather than parameter. * layout.cc (Layout::Layout): Call set_optimize on the section name stringpool.
This commit is contained in:
@@ -176,6 +176,12 @@ class Stringpool_template
|
||||
set_no_zero_null()
|
||||
{ this->zero_null_ = false; }
|
||||
|
||||
// Indicate that this string pool should be optimized, even if not
|
||||
// running with -O2.
|
||||
void
|
||||
set_optimize()
|
||||
{ this->optimize_ = true; }
|
||||
|
||||
// Add the string S to the pool. This returns a canonical permanent
|
||||
// pointer to the string in the pool. If COPY is true, the string
|
||||
// is copied into permanent storage. If PKEY is not NULL, this sets
|
||||
@@ -364,6 +370,8 @@ class Stringpool_template
|
||||
section_size_type strtab_size_;
|
||||
// Whether to reserve offset 0 to hold the null string.
|
||||
bool zero_null_;
|
||||
// Whether to optimize the string table.
|
||||
bool optimize_;
|
||||
};
|
||||
|
||||
// The most common type of Stringpool.
|
||||
|
||||
Reference in New Issue
Block a user