diff options
author | Tom Tromey <tom@tromey.com> | 2025-03-20 12:07:38 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2025-03-21 09:27:33 -0600 |
commit | 53181a6dfaa8c472c860c15e73365e397c0cd4f4 (patch) | |
tree | 063068393f58ee16d5deab74261ae0cdced15f66 /gprofng/src/Emsgnum.h | |
parent | 70c0de234fc6d8b349bf0fab35f957b16c679678 (diff) | |
download | binutils-master.zip binutils-master.tar.gz binutils-master.tar.bz2 |
This adds a new die_info::children method. This returns a range that
can be used to iterate over a DIE's children.
Then this goes through and updates all the relevant loops to use
foreach instead. This is a net code reduction.
You'll note that in some places the code was checking the tag as well,
like:
while (child_die && child_die->tag)
I believe this can't happen and is just a copy-paste oddity from the
old days.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gprofng/src/Emsgnum.h')
0 files changed, 0 insertions, 0 deletions