libdw: Simplify __libdw_visit_scopes' tag checks
authorJosh Stone <jistone@redhat.com>
Tue, 24 Sep 2013 22:52:05 +0000 (15:52 -0700)
committerJosh Stone <jistone@redhat.com>
Wed, 25 Sep 2013 16:39:32 +0000 (09:39 -0700)
commitf06c858f10d41b5156cc818c937d2ddd403d906d
treee99d02f1c2d703f54bf2ee4a88681ff7eaba43ae
parent2cfec29465e4d1882256f85eb92bbde4a9bdedbe
libdw: Simplify __libdw_visit_scopes' tag checks

The former classify_die() was splitting tags into more classes than
actually needed.

The one place that used the "imported" die_class now just compares to
DW_TAG_imported_unit directly.

The recursion check was squashing "match", "match_inline", and "walk"
into the same action.  Now that uses the new may_have_scopes(), which
just returns true for all tags that had those classifications.

The net result has no functional change, but performs better.

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