[Demangle PATCH] Some pre-fix cleanups
authorNathan Sidwell <nathan@acm.org>
Fri, 15 Sep 2017 10:50:05 +0000 (10:50 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 15 Sep 2017 10:50:05 +0000 (10:50 +0000)
commit9d89efebaac0b2c66ddd7f993717b341c8651cf6
tree94e0883a0fd5c2512e92b4bfdddc51a68d9d580f
parent897da3034cc2b1e3675d891e833c6b2a02fd4fe5
[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.

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