diff options
author | Tom Tromey <tom@tromey.com> | 2022-04-17 19:47:22 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-04-20 09:28:17 -0600 |
commit | bcd6845e2b66adb58d36eb1d9b8fbf71900b517d (patch) | |
tree | 0a1a9529971507e4f7430eebb5938da0e00ec5cc /gdb/symtab.h | |
parent | e19b2d94653dd4a7523a9e9b62020a63dac39439 (diff) | |
download | gdb-bcd6845e2b66adb58d36eb1d9b8fbf71900b517d.zip gdb-bcd6845e2b66adb58d36eb1d9b8fbf71900b517d.tar.gz gdb-bcd6845e2b66adb58d36eb1d9b8fbf71900b517d.tar.bz2 |
Replace symbol_arch with symbol::arch
This turns symbol_arch into a method on symbol.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r-- | gdb/symtab.h | 8 |
1 files changed, 4 insertions, 4 deletions
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. */ |