diff options
author | Tom Tromey <tromey@adacore.com> | 2024-01-25 11:17:24 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-02-15 10:16:48 -0700 |
commit | e70d6457a648c25d4382bcc030e9f5a94f3ca189 (patch) | |
tree | 3f52408d44a03e39787392ac5b5fa30abde5d029 /gdb/block.h | |
parent | 7921285b6c2ba0bee9bb21d8e23fdea4c790c181 (diff) | |
download | gdb-e70d6457a648c25d4382bcc030e9f5a94f3ca189.zip gdb-e70d6457a648c25d4382bcc030e9f5a94f3ca189.tar.gz gdb-e70d6457a648c25d4382bcc030e9f5a94f3ca189.tar.bz2 |
Move lookup_name_info creation into basic_lookup_transparent_type
I noticed that basic_lookup_transparent_type calls two different
functions that both proceed to create a lookup_name_info. It's more
efficient to create this object in the outermost layer possible.
Making this change required a few related changes, resulting in this
patch.
There are still more changes of this sort that could be made.
Regression tested on x86-64 Fedora 38.
Diffstat (limited to 'gdb/block.h')
-rw-r--r-- | gdb/block.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/block.h b/gdb/block.h index 0c12194..0063012 100644 --- a/gdb/block.h +++ b/gdb/block.h @@ -565,8 +565,7 @@ extern struct symbol *better_symbol (struct symbol *a, struct symbol *b, /* Search BLOCK for symbol NAME in DOMAIN. */ extern struct symbol *block_lookup_symbol (const struct block *block, - const char *name, - symbol_name_match_type match_type, + const lookup_name_info &name, const domain_search_flags domain); /* Search BLOCK for symbol NAME in DOMAIN but only in primary symbol table of |