Move pending_macros to buildsym_compunit
authorTom Tromey <tom@tromey.com>
Sun, 20 May 2018 16:46:25 +0000 (10:46 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 16 Jul 2018 14:55:15 +0000 (08:55 -0600)
commit6a976300e78cf6c90b5b70626ff1b28f495d8bab
tree883b925e309f24eaed0d17539df84263356bb83a
parentc0015d4497e0057536b5ec7e0fed8f8bca07572e
Move pending_macros to buildsym_compunit

This moves the pending_macros global into buildsym_compunit.

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

* buildsym.c (~buildsym_compunit): Free the macro table.
(struct buildsym_compunit) <get_macro_table, release_macros>: New
methods.
<m_pending_macros>: New member.
(pending_macros): Remove.
(~scoped_free_pendings, get_macro_table, prepare_for_building)
(reset_symtab_globals, end_symtab_get_static_block)
(end_symtab_with_blockvector, augment_type_symtab)
(buildsym_init): Update.
gdb/ChangeLog
gdb/buildsym.c