Make objfile::static_links an htab_up
authorTom Tromey <tom@tromey.com>
Sun, 7 Apr 2019 21:39:37 +0000 (15:39 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 19 Apr 2019 20:20:25 +0000 (14:20 -0600)
commitcf250e36790aaa255bb486e2122bb83c95c7669b
tree9d23da3203929ca556c5309b337243b65e77dc6c
parent61f4b350419e91560be94e0671a760b2e4902c65
Make objfile::static_links an htab_up

This changes objfile::static_links to be an htab_up, so that ~objfile
no longer has to explicitly destroy it.

Tested by the buildbot.

gdb/ChangeLog
2019-04-19  Tom Tromey  <tom@tromey.com>

* symfile.c (reread_symbols): Update.
* objfiles.c (objfile_register_static_link)
(objfile_lookup_static_link): Update
(~objfile) Don't delete static_links.
* objfiles.h (struct objfile) <static_links>: Now an htab_up.
gdb/ChangeLog
gdb/objfiles.c
gdb/objfiles.h
gdb/symfile.c