d-demangle.c (dlang_identifier): Prefix mangled init symbols with `initializer for'.

libiberty/ChangeLog:

	* d-demangle.c (dlang_identifier): Prefix mangled init symbols
	with `initializer for'.
	* testsuite/demangle-expected: Update tests.

From-SVN: r248539
This commit is contained in:
Iain Buclaw 2017-05-27 11:30:22 +00:00 committed by Iain Buclaw
parent 0e3712f6aa
commit dc64856fdf
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
* d-demangle.c (dlang_identifier): Prefix mangled init symbols
with `initializer for'.
* testsuite/demangle-expected: Update tests.
2017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
* d-demangle.c (dlang_call_convention_p): Move declaration

View File

@ -864,7 +864,8 @@ dlang_identifier (string *decl, const char *mangled,
else if (strncmp (mangled, "__initZ", len+1) == 0)
{
/* The static initialiser for a given symbol. */
string_append (decl, "init$");
string_prepend (decl, "initializer for ");
string_setlength (decl, string_length (decl) - 1);
mangled += len;
return mangled;
}

View File

@ -587,7 +587,7 @@ demangle.test(scope char() scope function)
#
--format=dlang
_D8demangle4test6__initZ
demangle.test.init$
initializer for demangle.test
#
--format=dlang
_D8demangle4test6__vtblZ