Replace symbol_objfile with symbol::objfile

This turns symbol_objfile into a method on symbol.
This commit is contained in:
Tom Tromey
2022-04-17 19:44:20 -06:00
parent f66b536343
commit e19b2d9465
13 changed files with 29 additions and 29 deletions

View File

@@ -48,7 +48,7 @@ block_objfile (const struct block *block)
const struct global_block *global_block;
if (BLOCK_FUNCTION (block) != NULL)
return symbol_objfile (BLOCK_FUNCTION (block));
return BLOCK_FUNCTION (block)->objfile ();
global_block = (struct global_block *) block_global_block (block);
return global_block->compunit_symtab->objfile ();