libdw: optimize dwarf_hasattr to just look at abbrev
authorJosh Stone <jistone@redhat.com>
Thu, 11 Dec 2014 02:33:34 +0000 (18:33 -0800)
committerJosh Stone <jistone@redhat.com>
Thu, 11 Dec 2014 19:23:26 +0000 (11:23 -0800)
commit64e44dfc9420940d238e5fdad4fadce3c1f5f05e
tree19fb9c6d48344c9f153ed9f0b7f818f3d2fb28c4
parentb849f813e6753ea60784175321d4bde78c0c2ad9
libdw: optimize dwarf_hasattr to just look at abbrev

To just check the presence of an attribute, we only need to look at the
abbreviation data.  This optimization avoids reading over die data at all,
except possibly just to get the abbrev code.

Signed-off-by: Josh Stone <jistone@redhat.com>
libdw/ChangeLog
libdw/dwarf_hasattr.c