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/dwarf2 | |
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/dwarf2')
-rw-r--r-- | gdb/dwarf2/read.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 9ad1afa5d61..11a2d3e7c9a 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -10170,8 +10170,8 @@ read_func_scope (struct die_info *die, struct dwarf2_cu *cu) || cu->lang () == language_d || cu->lang () == language_rust) && cu->processing_has_namespace_info) - block_set_scope (block, determine_prefix (die, cu), - &objfile->objfile_obstack); + block->set_scope (determine_prefix (die, cu), + &objfile->objfile_obstack); /* If we have address ranges, record them. */ dwarf2_record_block_ranges (die, block, baseaddr, cu); |