mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
gdb: remove BLOCK_SUPERBLOCK macro
Replace with equivalent methods. Change-Id: I334a319909a50b5cc5570a45c38c70e10dc00630
This commit is contained in:
committed by
Simon Marchi
parent
6c00f721c8
commit
f135fe728e
@@ -547,7 +547,7 @@ cp_lookup_symbol_imports_or_template (const char *scope,
|
||||
struct type *context;
|
||||
std::string name_copy (function->natural_name ());
|
||||
const struct language_defn *lang = language_def (language_cplus);
|
||||
const struct block *parent = BLOCK_SUPERBLOCK (block);
|
||||
const struct block *parent = block->superblock ();
|
||||
struct symbol *sym;
|
||||
|
||||
while (1)
|
||||
@@ -615,7 +615,7 @@ cp_lookup_symbol_via_all_imports (const char *scope, const char *name,
|
||||
if (sym.symbol)
|
||||
return sym;
|
||||
|
||||
block = BLOCK_SUPERBLOCK (block);
|
||||
block = block->superblock ();
|
||||
}
|
||||
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user