Use bitset for demangled_hash_languages
authorTom Tromey <tom@tromey.com>
Sat, 2 Mar 2019 02:55:46 +0000 (19:55 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 15 Mar 2019 22:02:08 +0000 (16:02 -0600)
commit1b7a07cba0aa096c2eb66895ef339aa5143e9995
tree817c4e8fe6ceb3e62133833a2c40cf58e4f5f629
parent3db066bcd5bac9a8d6be85ea4cfa8f52dbdcc600
Use bitset for demangled_hash_languages

I noticed that objfile_per_bfd_storage::demangled_hash_languages is a
std::vector, which seemed quite large for something that,
fundamentally, can be represented as a bitset.  This patch
reimplements it as a std::bitset.

gdb/ChangeLog
2019-03-15  Tom Tromey  <tom@tromey.com>

* objfiles.h (struct objfile_per_bfd_storage)
<demangled_hash_languages>: Now a bitset.
* minsyms.c (add_minsym_to_demangled_hash_table): Update.
(lookup_minimal_symbol): Update.
gdb/ChangeLog
gdb/minsyms.c
gdb/objfiles.h