diff options
author | Tom Tromey <tom@tromey.com> | 2019-04-07 15:39:37 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-04-19 14:20:25 -0600 |
commit | cf250e36790aaa255bb486e2122bb83c95c7669b (patch) | |
tree | 9d23da3203929ca556c5309b337243b65e77dc6c /gdb/objfiles.h | |
parent | 61f4b350419e91560be94e0671a760b2e4902c65 (diff) | |
download | gdb-cf250e36790aaa255bb486e2122bb83c95c7669b.zip gdb-cf250e36790aaa255bb486e2122bb83c95c7669b.tar.gz gdb-cf250e36790aaa255bb486e2122bb83c95c7669b.tar.bz2 |
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.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r-- | gdb/objfiles.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 168f7fc..e0ff834 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -615,7 +615,7 @@ struct objfile Very few blocks have a static link, so it's more memory efficient to store these here rather than in struct block. Static links must be allocated on the objfile's obstack. */ - htab_t static_links {}; + htab_up static_links; }; /* Declarations for functions defined in objfiles.c */ |