Move the using directives to buildsym_compunit
authorTom Tromey <tom@tromey.com>
Mon, 21 May 2018 05:28:39 +0000 (23:28 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 16 Jul 2018 14:55:22 +0000 (08:55 -0600)
commit6cccc9a89160455aab634784c231af4590d943f3
treef9df8eaf98263018587b093ea8287b6c13a0c750
parent652788a73137d8c16ac67a0cf9a8e51dd336d09e
Move the using directives to buildsym_compunit

This moves the globals local_using_directives and
global_using_directives to be members of buildsym_compunit, and adds
the necessary accessors.

gdb/ChangeLog
2018-07-16  Tom Tromey  <tom@tromey.com>

* dwarf2read.c (using_directives, read_func_scope)
(read_lexical_block_scope): Update.
* cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
* buildsym.h (local_using_directives, global_using_directives):
Don't declare.
(get_local_using_directives, set_local_using_directives)
(get_global_using_directives): Declare.
* buildsym.c (struct buildsym_compunit) <m_local_using_directives,
m_global_using_directives>: New members.
(finish_block_internal, prepare_for_building)
(reset_symtab_globals, end_symtab_get_static_block)
(push_context): Update.
(get_local_using_directives, set_local_using_directives)
(get_global_using_directives): New functions.
(buildsym_init): Update.
gdb/ChangeLog
gdb/buildsym.c
gdb/buildsym.h
gdb/cp-namespace.c
gdb/dwarf2read.c