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:
parent
0e3712f6aa
commit
dc64856fdf
|
@ -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>
|
2017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
|
||||||
|
|
||||||
* d-demangle.c (dlang_call_convention_p): Move declaration
|
* d-demangle.c (dlang_call_convention_p): Move declaration
|
||||||
|
|
|
@ -864,7 +864,8 @@ dlang_identifier (string *decl, const char *mangled,
|
||||||
else if (strncmp (mangled, "__initZ", len+1) == 0)
|
else if (strncmp (mangled, "__initZ", len+1) == 0)
|
||||||
{
|
{
|
||||||
/* The static initialiser for a given symbol. */
|
/* 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;
|
mangled += len;
|
||||||
return mangled;
|
return mangled;
|
||||||
}
|
}
|
||||||
|
|
|
@ -587,7 +587,7 @@ demangle.test(scope char() scope function)
|
||||||
#
|
#
|
||||||
--format=dlang
|
--format=dlang
|
||||||
_D8demangle4test6__initZ
|
_D8demangle4test6__initZ
|
||||||
demangle.test.init$
|
initializer for demangle.test
|
||||||
#
|
#
|
||||||
--format=dlang
|
--format=dlang
|
||||||
_D8demangle4test6__vtblZ
|
_D8demangle4test6__vtblZ
|
||||||
|
|
Loading…
Reference in New Issue