mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
Remove ALL_OBJFILE_OSECTIONS
This replaces ALL_OBJFILE_OSECTIONS with an iterator so that for-each can be used.
This commit is contained in:
@@ -625,12 +625,10 @@ program_space::add_target_sections (void *owner,
|
||||
void
|
||||
program_space::add_target_sections (struct objfile *objfile)
|
||||
{
|
||||
struct obj_section *osect;
|
||||
|
||||
gdb_assert (objfile != nullptr);
|
||||
|
||||
/* Compute the number of sections to add. */
|
||||
ALL_OBJFILE_OSECTIONS (objfile, osect)
|
||||
for (obj_section *osect : objfile->sections ())
|
||||
{
|
||||
if (bfd_section_size (osect->the_bfd_section) == 0)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user