diff options
author | Tom Tromey <tom@tromey.com> | 2018-05-20 22:45:44 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-07-16 08:55:21 -0600 |
commit | 652788a73137d8c16ac67a0cf9a8e51dd336d09e (patch) | |
tree | 4f569a0ee787371750a169035ddee26d169f8c8b /gdb/buildsym.h | |
parent | 8419ee5331d5b3253d2bfe1a039f12a167292dfc (diff) | |
download | gdb-652788a73137d8c16ac67a0cf9a8e51dd336d09e.zip gdb-652788a73137d8c16ac67a0cf9a8e51dd336d09e.tar.gz gdb-652788a73137d8c16ac67a0cf9a8e51dd336d09e.tar.bz2 |
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.
Diffstat (limited to 'gdb/buildsym.h')
-rw-r--r-- | gdb/buildsym.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/buildsym.h b/gdb/buildsym.h index b5ea63d..512d926 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -176,7 +176,7 @@ class scoped_free_pendings { public: - scoped_free_pendings () = default; + scoped_free_pendings (); ~scoped_free_pendings (); DISABLE_COPY_AND_ASSIGN (scoped_free_pendings); @@ -222,8 +222,6 @@ extern struct compunit_symtab *start_symtab (struct objfile *objfile, extern void restart_symtab (struct compunit_symtab *cust, const char *name, CORE_ADDR start_addr); -extern void free_pending_blocks (void); - /* Record the name of the debug format in the current pending symbol table. FORMAT must be a string with a lifetime at least as long as the symtab's objfile. */ |