Change count_psyms to be a method on psymbol_functions
authorTom Tromey <tom@tromey.com>
Sat, 20 Mar 2021 23:23:40 +0000 (17:23 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 20 Mar 2021 23:23:45 +0000 (17:23 -0600)
commitcaf8c1e5071295d25f3843d5d39541df24b45787
tree2be1468f6e2e29fb26cc8e60e2abd3c6114927e2
parent3aa31ce7884f979c68d440a4352c8d69a3283f6c
Change count_psyms to be a method on psymbol_functions

This removes a use of objfile->psymtabs by changing count_psyms to be
a method on psymbol_functions.

gdb/ChangeLog
2021-03-20  Tom Tromey  <tom@tromey.com>

* psymtab.c (psymbol_functions::count_psyms): Rename.
(psymbol_functions::print_stats): Update.
* psympriv.h (struct psymbol_functions) <count_psyms>: Declare
method.
gdb/ChangeLog
gdb/psympriv.h
gdb/psymtab.c