diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-16 17:39:55 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-19 12:51:05 -0700 |
commit | 3c45e9f915ae4aeab7312d6fc55a947859057572 (patch) | |
tree | e5fb72d611406e485457ac45037a3676fa07cb45 /gdb/d-namespace.c | |
parent | a4dfe747564a5728da7c79ca2be3659148c87a49 (diff) | |
download | binutils-gdb-3c45e9f915ae4aeab7312d6fc55a947859057572.tar.gz |
Convert more block functions to methods
This converts block_scope, block_set_scope, block_using, and
block_set_using to be methods. These are all done at once to make it
easier to also convert block_initialize_namespace at the same time.
This was mostly written by script.
Diffstat (limited to 'gdb/d-namespace.c')
-rw-r--r-- | gdb/d-namespace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/d-namespace.c b/gdb/d-namespace.c index aaef1dfae1f..6153e5b3239 100644 --- a/gdb/d-namespace.c +++ b/gdb/d-namespace.c @@ -375,7 +375,7 @@ d_lookup_symbol_imports (const char *scope, const char *name, the module we're searching in, see if we can find a match by applying them. */ - for (current = block_using (block); + for (current = block->get_using (); current != NULL; current = current->next) { @@ -511,7 +511,7 @@ d_lookup_symbol_nonlocal (const struct language_defn *langdef, const domain_enum domain) { struct block_symbol sym; - const char *scope = block == nullptr ? "" : block_scope (block); + const char *scope = block == nullptr ? "" : block->scope (); sym = lookup_module_scope (langdef, name, block, domain, scope, 0); if (sym.symbol != NULL) |