Remove ALL_OBJFILE_COMPUNITS
[deliverable/binutils-gdb.git] / gdb / linespec.c
index 0d08bbee9437b09f84ef72a9a7ff6c155ef7b805..964697b7bcbd3f6be276bd500916f1bf06ed0cad 100644 (file)
@@ -1143,8 +1143,6 @@ iterate_over_all_matching_symtabs
 
     for (objfile *objfile : all_objfiles (current_program_space))
       {
-       struct compunit_symtab *cu;
-
        if (objfile->sf)
          objfile->sf->qf->expand_symtabs_matching (objfile,
                                                    NULL,
@@ -1152,7 +1150,7 @@ iterate_over_all_matching_symtabs
                                                    NULL, NULL,
                                                    search_domain);
 
-       ALL_OBJFILE_COMPUNITS (objfile, cu)
+       for (compunit_symtab *cu : objfile_compunits (objfile))
          {
            struct symtab *symtab = COMPUNIT_FILETABS (cu);
 
This page took 0.023757 seconds and 4 git commands to generate.