Replace symbol_arch with symbol::arch

This turns symbol_arch into a method on symbol.
This commit is contained in:
Tom Tromey
2022-04-17 19:47:22 -06:00
parent e19b2d9465
commit bcd6845e2b
7 changed files with 13 additions and 13 deletions

View File

@@ -60,7 +60,7 @@ struct gdbarch *
block_gdbarch (const struct block *block)
{
if (BLOCK_FUNCTION (block) != NULL)
return symbol_arch (BLOCK_FUNCTION (block));
return BLOCK_FUNCTION (block)->arch ();
return block_objfile (block)->arch ();
}