mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
Return references from compunit_symtab iterator
This changes the compunit_symtab iterator to return references rather than pointers, following the style of some other recent changes. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@@ -5588,10 +5588,10 @@ add_nonlocal_symbols (std::vector<struct block_symbol> &result,
|
||||
{
|
||||
map_matching_symbols (&objfile, lookup_name, domain, global, data);
|
||||
|
||||
for (compunit_symtab *cu : objfile.compunits ())
|
||||
for (compunit_symtab &cu : objfile.compunits ())
|
||||
{
|
||||
const struct block *global_block
|
||||
= cu->blockvector ()->global_block ();
|
||||
= cu.blockvector ()->global_block ();
|
||||
|
||||
if (ada_add_block_renamings (result, global_block, lookup_name,
|
||||
domain))
|
||||
|
||||
Reference in New Issue
Block a user