From bcd6845e2b66adb58d36eb1d9b8fbf71900b517d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 17 Apr 2022 19:47:22 -0600 Subject: Replace symbol_arch with symbol::arch This turns symbol_arch into a method on symbol. --- gdb/symtab.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/symtab.h') diff --git a/gdb/symtab.h b/gdb/symtab.h index f6720bb..a773fcc 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1382,6 +1382,10 @@ struct symbol : public general_symbol_info, public allocate_on_obstack struct objfile *objfile () const; + /* Return the ARCH of this symbol. */ + + struct gdbarch *arch () const; + /* Data type of value */ struct type *m_type = nullptr; @@ -1498,10 +1502,6 @@ extern int register_symbol_block_impl (enum address_class aclass, extern int register_symbol_register_impl (enum address_class, const struct symbol_register_ops *); -/* Return the ARCH of SYMBOL. */ - -extern struct gdbarch *symbol_arch (const struct symbol *symbol); - /* Return the SYMTAB of SYMBOL. It is an error to call this if symbol.is_objfile_owned is false, which only happens for architecture-provided types. */ -- cgit v1.1