aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-16 17:39:55 -0700
committerTom Tromey <tom@tromey.com>2023-02-19 12:51:05 -0700
commit3c45e9f915ae4aeab7312d6fc55a947859057572 (patch)
treee5fb72d611406e485457ac45037a3676fa07cb45 /gdb/buildsym.c
parenta4dfe747564a5728da7c79ca2be3659148c87a49 (diff)
downloadgdb-3c45e9f915ae4aeab7312d6fc55a947859057572.zip
gdb-3c45e9f915ae4aeab7312d6fc55a947859057572.tar.gz
gdb-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/buildsym.c')
-rw-r--r--gdb/buildsym.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index 8dbb327..adc554e 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -372,11 +372,10 @@ buildsym_compunit::finish_block_internal
opblock = pblock;
}
- block_set_using (block,
- (is_global
- ? m_global_using_directives
- : m_local_using_directives),
- &m_objfile->objfile_obstack);
+ block->set_using ((is_global
+ ? m_global_using_directives
+ : m_local_using_directives),
+ &m_objfile->objfile_obstack);
if (is_global)
m_global_using_directives = NULL;
else