From: Tom Tromey Date: Sat, 16 Apr 2022 18:49:50 +0000 (-0600) Subject: Remove symbol::aclass_index X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f66b5363431ccf23debbdfacb63c09c2c57b6ada;p=binutils-gdb.git Remove symbol::aclass_index Symbols have an aclass_index method, but this isn't needed, because the aclass index isn't useful outside of the symbol implementation. --- diff --git a/gdb/symtab.h b/gdb/symtab.h index 0adedd9841a..433c36618e2 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1221,11 +1221,6 @@ struct symbol : public general_symbol_info, public allocate_on_obstack symbol (const symbol &) = default; symbol &operator= (const symbol &) = default; - unsigned int aclass_index () const - { - return m_aclass_index; - } - void set_aclass_index (unsigned int aclass_index) { m_aclass_index = aclass_index; @@ -1233,7 +1228,7 @@ struct symbol : public general_symbol_info, public allocate_on_obstack const symbol_impl &impl () const { - return symbol_impls[this->aclass_index ()]; + return symbol_impls[this->m_aclass_index]; } address_class aclass () const