aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-01-25 11:17:24 -0700
committerTom Tromey <tromey@adacore.com>2024-02-15 10:16:48 -0700
commite70d6457a648c25d4382bcc030e9f5a94f3ca189 (patch)
tree3f52408d44a03e39787392ac5b5fa30abde5d029 /gdb/objfiles.h
parent7921285b6c2ba0bee9bb21d8e23fdea4c790c181 (diff)
downloadgdb-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/objfiles.h')
-rw-r--r--gdb/objfiles.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index 98e2355..7ed2322 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -561,7 +561,8 @@ public:
defined, or NULL if no such symbol table exists. If OBJFILE
contains !TYPE_OPAQUE symbol prefer its compunit. If it contains
only TYPE_OPAQUE symbol(s), return at least that compunit. */
- struct compunit_symtab *lookup_symbol (block_enum kind, const char *name,
+ struct compunit_symtab *lookup_symbol (block_enum kind,
+ const lookup_name_info &name,
domain_search_flags domain);
/* See quick_symbol_functions. */