Move symbol::value_block to symtab.c

It seems to me that symbol::value_block doesn't particularly need to
be inlined.  This patch moves it to symtab.c.
This commit is contained in:
Tom Tromey
2025-10-22 15:23:03 -06:00
parent f8af94d91e
commit 3f48c9f88c
2 changed files with 12 additions and 10 deletions

View File

@@ -6586,6 +6586,18 @@ symbol::get_maybe_copied_address () const
/* See symtab.h. */
const block *
symbol::value_block () const
{
if (const symbol_block_ops *block_ops = this->block_ops ();
block_ops != nullptr && block_ops->get_block_value != nullptr)
return block_ops->get_block_value (this);
return m_value.block;
}
/* See symtab.h. */
CORE_ADDR
minimal_symbol::get_maybe_copied_address (objfile *objf) const
{

View File

@@ -1565,16 +1565,6 @@ struct block_symbol
#define SYMBOL_LOCATION_BATON(symbol) (symbol)->aux_value
inline const block *
symbol::value_block () const
{
if (const symbol_block_ops *block_ops = this->block_ops ();
block_ops != nullptr && block_ops->get_block_value != nullptr)
return block_ops->get_block_value (this);
return m_value.block;
}
extern int register_symbol_computed_impl (location_class,
const struct symbol_computed_ops *);