diff options
author | Tom Tromey <tom@tromey.com> | 2018-05-20 23:28:39 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-07-16 08:55:22 -0600 |
commit | 6cccc9a89160455aab634784c231af4590d943f3 (patch) | |
tree | f9df8eaf98263018587b093ea8287b6c13a0c750 /gdb/buildsym.h | |
parent | 652788a73137d8c16ac67a0cf9a8e51dd336d09e (diff) | |
download | fsf-binutils-gdb-6cccc9a89160455aab634784c231af4590d943f3.zip fsf-binutils-gdb-6cccc9a89160455aab634784c231af4590d943f3.tar.gz fsf-binutils-gdb-6cccc9a89160455aab634784c231af4590d943f3.tar.bz2 |
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.
Diffstat (limited to 'gdb/buildsym.h')
-rw-r--r-- | gdb/buildsym.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/gdb/buildsym.h b/gdb/buildsym.h index 512d926..efb35c9 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -93,14 +93,6 @@ EXTERN struct pending *global_symbols; EXTERN struct pending *local_symbols; -/* "using" directives local to lexical context. */ - -EXTERN struct using_direct *local_using_directives; - -/* global "using" directives. */ - -EXTERN struct using_direct *global_using_directives; - /* Stack representing unclosed lexical contexts (that will become blocks, eventually). */ @@ -266,6 +258,18 @@ extern void set_last_source_start_addr (CORE_ADDR addr); extern CORE_ADDR get_last_source_start_addr (); +/* Return the local using directives. */ + +extern struct using_direct **get_local_using_directives (); + +/* Set the list of local using directives. */ + +extern void set_local_using_directives (struct using_direct *new_local); + +/* Return the global using directives. */ + +extern struct using_direct **get_global_using_directives (); + #undef EXTERN #endif /* defined (BUILDSYM_H) */ |