diff options
author | Tom Tromey <tom@tromey.com> | 2022-04-16 12:49:50 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-04-20 09:28:16 -0600 |
commit | f66b5363431ccf23debbdfacb63c09c2c57b6ada (patch) | |
tree | 68cffe1115504ab828d77f6c267f1c4d381a3f89 /gdb/symtab.h | |
parent | 6bc3c5b438280008315d5e7b49c0ff1c27225cbe (diff) | |
download | gdb-f66b5363431ccf23debbdfacb63c09c2c57b6ada.zip gdb-f66b5363431ccf23debbdfacb63c09c2c57b6ada.tar.gz gdb-f66b5363431ccf23debbdfacb63c09c2c57b6ada.tar.bz2 |
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.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r-- | gdb/symtab.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index 0adedd9..433c366 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 |