It seems to me that symbol::value_block doesn't particularly need to
be inlined. This patch moves it to symtab.c.
/* 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
{
#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 *);