Make free_pending_blocks static
authorTom Tromey <tom@tromey.com>
Mon, 21 May 2018 04:45:44 +0000 (22:45 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 16 Jul 2018 14:55:21 +0000 (08:55 -0600)
commit652788a73137d8c16ac67a0cf9a8e51dd336d09e
tree4f569a0ee787371750a169035ddee26d169f8c8b
parent8419ee5331d5b3253d2bfe1a039f12a167292dfc
Make free_pending_blocks static

free_pending_blocks can be static because scoped_free_pendings (et al)
arrange for it to be NULL in the "steady state".  This removes a
couple of unnecessary calls to free_pending_blocks and changes it to
be static.

gdb/ChangeLog
2018-07-16  Tom Tromey  <tom@tromey.com>

* xcoffread.c (xcoff_initial_scan): Don't call
free_pending_blocks.
* dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
* buildsym.h (class scoped_free_pendings): Add constructor.
(free_pending_blocks): Don't declare.
* buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
(free_pending_blocks): Now static.
gdb/ChangeLog
gdb/buildsym.c
gdb/buildsym.h
gdb/dbxread.c
gdb/xcoffread.c