cp-demangle.c: Include hashtab.h.
authorGary Benson <gbenson@redhat.com>
Tue, 10 Sep 2013 12:33:50 +0000 (12:33 +0000)
committerGary Benson <gary@gcc.gnu.org>
Tue, 10 Sep 2013 12:33:50 +0000 (12:33 +0000)
commit669ea36c4a1d0fe89905537ffc84ada23d2df3e4
treedc0e772c75776de407d7a430dd2afa506de10faf
parent581aedec91ca246f52469d349fbd7664d17d6dc2
cp-demangle.c: Include hashtab.h.

2013-09-10  Gary Benson  <gbenson@redhat.com>

* cp-demangle.c: Include hashtab.h.
(struct d_print_info): New field saved_scopes.
(d_print_init): Initialize the above.
(d_print_free): New function.
(cplus_demangle_print_callback): Call the above.
(struct d_saved_scope): New structure.
(d_store_scope): New function.
(d_free_scope) Likewise.
(d_restore_scope) Likewise.
(d_hash_saved_scope) Likewise.
(d_equal_saved_scope) Likewise.
(d_print_comp): New variable saved_scope.
[DEMANGLE_COMPONENT_REFERENCE,
DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
time the component is traversed, and use the captured scope for
subsequent traversals.

From-SVN: r202442
libiberty/ChangeLog
libiberty/cp-demangle.c
libiberty/testsuite/demangle-expected