buildsym_compunit::release_macros is only called from a single spot in
buildsym.c, so let's inline it and remove the method.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
blockvector->global_block ()->set_compunit (cu);
- cu->set_macro_table (release_macros ());
+ cu->set_macro_table (m_pending_macros);
+ m_pending_macros = nullptr;
/* Default any symbols without a specified symtab to the primary symtab. */
{
struct macro_table *get_macro_table ();
- struct macro_table *release_macros ()
- {
- struct macro_table *result = m_pending_macros;
- m_pending_macros = nullptr;
- return result;
- }
-
/* This function is called to discard any pending blocks. */
void free_pending_blocks ()