Convert block_static_block and block_global_block to methods

This converts block_static_block and block_global_block to be methods.
This was mostly written by script.  It was simpler to convert them at
the same time because they're often used near each other.
This commit is contained in:
Tom Tromey
2023-01-16 18:14:47 -07:00
parent 99f3dfd0f9
commit d24e14a0c6
12 changed files with 43 additions and 36 deletions

View File

@@ -141,7 +141,7 @@ cp_basic_lookup_symbol (const char *name, const struct block *block,
but should be treated as local to a single file nonetheless.
So we only search the current file's global block. */
const struct block *global_block = block_global_block (block);
const struct block *global_block = block->global_block ();
if (global_block != NULL)
{