[Demangle PATCH] Some pre-fix cleanups
commit2a80a8f01389b82da57f3f83fa52a14a05597cfe
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Sep 2017 10:50:05 +0000 (15 10:50 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Sep 2017 10:50:05 +0000 (15 10:50 +0000)
tree94e0883a0fd5c2512e92b4bfdddc51a68d9d580f
parent0340b0d489a469b3d441f83e04ea40262e98ba8e
[Demangle PATCH] Some pre-fix cleanups

https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00983.html

* cp-demangle.c (is_fnqual_component_type): Reimplement using
FNQUAL_COMPONENT_CASE.
(d_encoding): Hold bare_function_type in local var.
(d_local_name): Build name in both cases and build result once.
Collapse switch-if to single conditional.
* testsuite/demangle-expected: Realign blank lines with tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@252802 138bc75d-0d04-0410-961f-82ee72b054a4
libiberty/ChangeLog
libiberty/cp-demangle.c
libiberty/testsuite/demangle-expected