This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/9] Introduce and use language_set
On 3/7/19 12:57 PM, Tom Tromey wrote:
> 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 bit-set. This patch
> reimplements it as a bit-set.
Hmm, did you consider using std::bitset<nr_languages> for langauge_set? You'd
still have to write your own iterator class, so it wouldn't save much in terms
of lines of code. It just seems a bit odd to write a bitset class from scratch?
--
John Baldwin