]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove linespec.c:symtab_collector class
authorTom Tromey <tom@tromey.com>
Mon, 29 Sep 2025 15:31:59 +0000 (09:31 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 9 Oct 2025 21:43:43 +0000 (15:43 -0600)
commitf8e7ce792fb3e7b30de60c11b5d155af01dad78c
tree778e50a078631dc3e18833480962cfe2503b7b5a
parenta736ff7d886dbcc85026264c3ce11c125a8409b2
Remove linespec.c:symtab_collector class

linespec.c has a symtab_collector class that is readily replaced by a
lambda.  I think the result is more clear.

I considered using the unordered_dense 'extract' method as well, to
make the code a bit more efficient -- but it wasn't clear to me if the
ordering of the vector mattered, and so I've just added a comment.

Reviewed-By: Guinevere Larsen <guinevere@redhat.com>
gdb/linespec.c