]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove dwarf2_per_bfd::m_num_psymtabs
authorTom Tromey <tom@tromey.com>
Sat, 29 May 2021 21:35:07 +0000 (15:35 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 31 May 2021 01:44:05 +0000 (19:44 -0600)
commitc96e8b04d3a8ef41843c7d3fa093b50b597dc7e0
tree31dce094d1895a0220cb23617c8af1a2ca40fba5
parent140c5aec0db2d1c27320274ab8aead925a1429fc
Remove dwarf2_per_bfd::m_num_psymtabs

Now that CUs and TUs are stored together in all_comp_units, the
m_num_psymtabs member is no longer needed -- it is always identical to
the length of the vector.  This patch removes it.

2021-05-30  Tom Tromey  <tom@tromey.com>

* dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
m_num_psymtabs>: Remove.
(resize_symtabs): Update.
* dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
(dwarf2_per_bfd::allocate_signatured_type): Update.
gdb/ChangeLog
gdb/dwarf2/read.c
gdb/dwarf2/read.h