public inbox for gdb-cvs@sourceware.org help / color / mirror / Atom feed
From: Tom Tromey <tromey@sourceware.org> To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Remove symbol::aclass_index Date: Wed, 20 Apr 2022 16:28:11 +0000 (GMT) [thread overview] Message-ID: <20220420162811.2472D3858C27@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f66b5363431ccf23debbdfacb63c09c2c57b6ada commit f66b5363431ccf23debbdfacb63c09c2c57b6ada Author: Tom Tromey <tom@tromey.com> Date: Sat Apr 16 12:49:50 2022 -0600 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: --- gdb/symtab.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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
reply other threads:[~2022-04-20 16:28 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220420162811.2472D3858C27@sourceware.org \ --to=tromey@sourceware.org \ --cc=gdb-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).