Convert block_gdbarch to method

This converts block_gdbarch to be a method.  This was mostly written
by script.
This commit is contained in:
Tom Tromey
2023-01-16 17:24:16 -07:00
parent 46baa3c6cf
commit 7f5937df01
6 changed files with 12 additions and 12 deletions

View File

@@ -197,7 +197,7 @@ cp_lookup_bare_symbol (const struct language_defn *langdef,
if (block == NULL)
gdbarch = target_gdbarch ();
else
gdbarch = block_gdbarch (block);
gdbarch = block->gdbarch ();
sym.symbol
= language_lookup_primitive_type_as_symbol (langdef, gdbarch, name);
sym.block = NULL;