aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-03-02 12:18:05 -0700
committerTom Tromey <tom@tromey.com>2019-03-15 16:02:09 -0600
commitdb92718b541158d4782dbc9f48401c20f2bbad6d (patch)
tree07e8ecdc56396760bd73fe7bef776d7c51146665 /gdb/objfiles.c
parentd6797f465c3f67b41a0db38870bbd33384b6551f (diff)
downloadgdb-db92718b541158d4782dbc9f48401c20f2bbad6d.zip
gdb-db92718b541158d4782dbc9f48401c20f2bbad6d.tar.gz
gdb-db92718b541158d4782dbc9f48401c20f2bbad6d.tar.bz2
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.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r--gdb/objfiles.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index ff8b6fc..7d36a2a 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -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