mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 04:24:43 +00:00
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:
12
gdb/symtab.c
12
gdb/symtab.c
@@ -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
|
||||
{
|
||||
|
||||
10
gdb/symtab.h
10
gdb/symtab.h
@@ -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 *);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user