mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-05 23:26:51 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user