public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Remove symbol::aclass_index
@ 2022-04-20 16:28 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2022-04-20 16:28 UTC (permalink / raw)
  To: gdb-cvs

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-20 16:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-20 16:28 [binutils-gdb] Remove symbol::aclass_index Tom Tromey

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).