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/symtab.c | |
parent | a4dfe747564a5728da7c79ca2be3659148c87a49 (diff) | |
download | binutils-3c45e9f915ae4aeab7312d6fc55a947859057572.zip binutils-3c45e9f915ae4aeab7312d6fc55a947859057572.tar.gz binutils-3c45e9f915ae4aeab7312d6fc55a947859057572.tar.bz2 |
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/symtab.c')
-rw-r--r-- | gdb/symtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 52043e4..bd6abbf 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -2160,7 +2160,7 @@ lookup_local_symbol (const char *name, struct symbol *sym; const struct block *static_block = block_static_block (block); - const char *scope = block_scope (block); + const char *scope = block->scope (); /* Check if it's a global block. */ if (static_block == nullptr) |