Use htab_up for demangled hash
This changes objfile_per_bfd_storage::demangled_names_hash to be an htab_up. This lets us remove some manual management code from the objfile_per_bfd_storage destructor. gdb/ChangeLog 2019-03-15 Tom Tromey <tom@tromey.com> * symtab.c (create_demangled_names_hash): Update. (symbol_set_names): Update. * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash>: Now an htab_up. * objfiles.c (objfile_per_bfd_storage): Simplify.
This commit is contained in:
parent
d6797f465c
commit
db92718b54
4 changed files with 12 additions and 6 deletions
|
@ -119,8 +119,6 @@ static const struct bfd_data *objfiles_bfd_data;
|
|||
|
||||
objfile_per_bfd_storage::~objfile_per_bfd_storage ()
|
||||
{
|
||||
if (demangled_names_hash)
|
||||
htab_delete (demangled_names_hash);
|
||||
}
|
||||
|
||||
/* Create the per-BFD storage object for OBJFILE. If ABFD is not
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue