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  <ibuc...@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

Reply via email to