From db92718b541158d4782dbc9f48401c20f2bbad6d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 2 Mar 2019 12:18:05 -0700 Subject: 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 * symtab.c (create_demangled_names_hash): Update. (symbol_set_names): Update. * objfiles.h (struct objfile_per_bfd_storage) : Now an htab_up. * objfiles.c (objfile_per_bfd_storage): Simplify. --- gdb/objfiles.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/objfiles.h') diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 6f8eb7f..1fa6f3c 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -262,7 +262,7 @@ struct objfile_per_bfd_storage name, and the second is the demangled name or just a zero byte if the name doesn't demangle. */ - htab *demangled_names_hash = NULL; + htab_up demangled_names_hash; /* The per-objfile information about the entry point, the scope (file/func) containing the entry point, and the scope of the user's main() func. */ -- cgit v1.1