]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/dwarf: use gdb::unordered_set for cooked_index_storage::m_reader_hash
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 18 Mar 2025 13:48:51 +0000 (09:48 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 18 Mar 2025 20:21:29 +0000 (16:21 -0400)
commit4ea28692e88cdc4ff5d80f486bfd9ba7a78b5cc7
tree5a786ea91d7ad9d09fa277d83998d79d3656101a
parentc08c2adbb03ecd4fa9338932f26143389bf1135e
gdb/dwarf: use gdb::unordered_set for cooked_index_storage::m_reader_hash

Replace an htab with gdb::unordered_set.  I think we could also use the
dwarf2_per_cu pointer itself as the identity, basically have the
functional equivalent of:

  gdb::unordered_map<dwarf2_per_cu *, cutu_reader_up>

But I kept the existing behavior of using dwarf2_per_cu::index as the
identity.

Change-Id: Ief3df9a71ac26ca7c07a7b79ca0c26c9d031c11d
Approved-By: Tom Tromey <tom@tromey.com>
gdb/dwarf2/cooked-index-storage.c
gdb/dwarf2/cooked-index-storage.h