]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Make psymtab_storage::free_psymtabs private
authorTom Tromey <tom@tromey.com>
Thu, 10 May 2018 22:23:56 +0000 (16:23 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 10 Jan 2019 14:08:14 +0000 (07:08 -0700)
commitb596a3c77da2387d7e5a3855717d65ce33bdfb58
tree8031414899706c82056f981b6811beb2c06e8e3f
parenta9342b62885d5119593fa4330924e031e14c6406
Make psymtab_storage::free_psymtabs private

This adds a new psymtab allocation method to psymtab_storage and
changes the free_psymtabs member to be private.  While not strictly
necessary, this seems like a decent cleanup, and also makes it simpler
to move psymtabs off of obstacks entirely, should that prove
desirable.

gdb/ChangeLog
2019-01-10  Tom Tromey  <tom@tromey.com>

* psymtab.h (psymtab_storage::allocate_psymtab): New method.
<free_psymtabs>: Now private.
* psymtab.c (psymtab_storage::allocate_psymtab): Implement.
(allocate_psymtab): Use new method.
gdb/ChangeLog
gdb/psymtab.c
gdb/psymtab.h