aboutsummaryrefslogtreecommitdiff
path: root/gprofng/src/Hist_data.cc
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2025-03-20 12:07:38 -0600
committerTom Tromey <tom@tromey.com>2025-03-21 09:27:33 -0600
commit53181a6dfaa8c472c860c15e73365e397c0cd4f4 (patch)
tree063068393f58ee16d5deab74261ae0cdced15f66 /gprofng/src/Hist_data.cc
parent70c0de234fc6d8b349bf0fab35f957b16c679678 (diff)
downloadbinutils-master.zip
binutils-master.tar.gz
binutils-master.tar.bz2
Introduce die_info::children and use itHEADmaster
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/Hist_data.cc')
0 files changed, 0 insertions, 0 deletions