mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user