aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-04-17 19:47:22 -0600
committerTom Tromey <tom@tromey.com>2022-04-20 09:28:17 -0600
commitbcd6845e2b66adb58d36eb1d9b8fbf71900b517d (patch)
tree0a1a9529971507e4f7430eebb5938da0e00ec5cc /gdb/symtab.c
parente19b2d94653dd4a7523a9e9b62020a63dac39439 (diff)
downloadbinutils-bcd6845e2b66adb58d36eb1d9b8fbf71900b517d.zip
binutils-bcd6845e2b66adb58d36eb1d9b8fbf71900b517d.tar.gz
binutils-bcd6845e2b66adb58d36eb1d9b8fbf71900b517d.tar.bz2
Replace symbol_arch with symbol::arch
This turns symbol_arch into a method on symbol.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 7188169..d5d3877 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -6602,11 +6602,11 @@ symbol::objfile () const
/* See symtab.h. */
struct gdbarch *
-symbol_arch (const struct symbol *symbol)
+symbol::arch () const
{
- if (!symbol->is_objfile_owned ())
- return symbol->owner.arch;
- return symbol->owner.symtab->compunit ()->objfile ()->arch ();
+ if (!is_objfile_owned ())
+ return owner.arch;
+ return owner.symtab->compunit ()->objfile ()->arch ();
}
/* See symtab.h. */