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:
Tom Tromey
2025-10-08 17:29:34 -06:00
parent 61a98786bf
commit 906678d08e
9 changed files with 58 additions and 59 deletions

View File

@@ -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))