[demangler PATCH]: Revert and update generic lambda demangling
authorNathan Sidwell <nathan@acm.org>
Thu, 21 Sep 2017 15:52:31 +0000 (15:52 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 21 Sep 2017 15:52:31 +0000 (15:52 +0000)
commit7cd7dbdadf181dd79a933fee387364b24558058e
tree76815fdc44e1920f707fea268d10bbd21d9c55fb
parentf17aba3c82d9c316ab550b81cf9c7f141b31b999
[demangler PATCH]: Revert and update generic lambda demangling

https://gcc.gnu.org/ml/gcc-patches/2017-09/msg01482.html
PR demangler/82195
* cp-demangle.c (d_name): Revert addition of 'toplevel' parm.
(has_return_type): Recurse for DEMANGLE_COMPONENT_LOCAL_NAME.
(d_encoding): Revert d_name change.  Use is_fnqual_component_type
to strip modifiers that do not belong.
(d_special_name, d_class_enum_type): Revert d_name call change.
(d_expresion_1): Commonize DEMANGLE_COMPONENT_UNARY building.
(d_local_name): Revert parsing of a function type.
(d_print_comp_inner): An inner LOCAL_NAME might contain a
TEMPLATE.
* testsuite/demangle-expected: Add & adjust tests

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