Simplify psymbol_functions::expand_symtabs_matching
authorTom Tromey <tom@tromey.com>
Fri, 26 Mar 2021 19:28:03 +0000 (13:28 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 26 Mar 2021 19:28:03 +0000 (13:28 -0600)
commite2cd5ca40c03271aa0bf324cac1f7a66ad3904d8
treeba78d6ae6b8cd50c3fb4932cfd2b817cfccf15ca
parentcd43f63e00113cc10e068a10966a8c90e9b37ccc
Simplify psymbol_functions::expand_symtabs_matching

I noticed that psymbol_functions::expand_symtabs_matching calls
make_ignore_params once per psymtab that is matched.  This seems
possibly expensive, so this patch hoists the call out of the loop.

gdb/ChangeLog
2021-03-26  Tom Tromey  <tom@tromey.com>

* psymtab.c (psymbol_functions::expand_symtabs_matching): Only
call make_ignore_params once.
gdb/ChangeLog
gdb/psymtab.c