]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Convert compile-c-symbols.c to new hash table
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 4 Nov 2024 18:27:36 +0000 (13:27 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 26 Nov 2024 03:07:03 +0000 (22:07 -0500)
commit33d2aa8cccf20d580feca64d6df44341ff2d445c
tree68e8b30826934494f93c255b4ee53a146bfbd3ce
parent8f942ca8a5259e8dac4745df1b15b80467346a0d
Convert compile-c-symbols.c to new hash table

This converts compile-c-symbols.c to use the new hash table.

I made it use a set of string_view instead of a set of `symbol *`, to
avoid calling `symbol::natural_name` over and over.  This appears safe
to do, since I don't expect the storage behing the natural names to
change during the lifetime of the map.

Change-Id: Ie9f9334d4f03b9a8ae6886287f82cd435eee217c
Co-Authored-By: Tom Tromey <tom@tromey.com>
Approved-By: Tom Tromey <tom@tromey.com>
gdb/compile/compile-c-symbols.c