[PATCH 3/7] [D] libiberty: Include type modifiers in demangled function symbols

Jeff Law law@redhat.com
Thu May 14 13:09:00 GMT 2015


On 05/13/2015 02:51 AM, Iain Buclaw wrote:
> Like C++ const and volatile, in D mangled symbols can exist modifiers
> that represent the const, immutable, inout and shared-ness of the
> 'this' parameter.
>
> This information should be written out in the demangled symbol to show
> that each variant has a unique identity.
>
> ---
> libiberty/ChangeLog:
>
> 2015-05-13 Iain Buclaw  <ibuclaw@gdcproject.org>
>      * d-demangle.c (dlang_type_modifiers): New function.
>      (dlang_type_modifier_p): New function.
>      (dlang_call_convention_p): Ignore any kind of type modifier.
>      (dlang_type): Handle and emit the type modifier after delegate types.
>      (dlang_parse_symbol): Handle and emit the type modifier after the symbol.
>      * testsuite/d-demangle-expected: Add coverage tests for all valid
>      usages of function symbols with type modifiers.
OK.
jeff



More information about the Gcc-patches mailing list