diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-05-15 09:34:36 +0200 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-05-15 10:40:47 +0200 |
commit | 3a55774f0b67645efc54fa1ac8f0053053d566dd (patch) | |
tree | d5b67393ce3703f6c8a37d7fd9bf697b2259eaa7 /libiberty/d-demangle.c | |
parent | f8b0665445bee8673b62c0a40ae257fe8c75a9b6 (diff) | |
download | gcc-3a55774f0b67645efc54fa1ac8f0053053d566dd.tar.gz |
libiberty: Handle @live attribute in D demangler.
Adds support for demangling D functions annotated with the new
ownership/borrowing system attribute.
libiberty/ChangeLog:
* d-demangle.c (dlang_attributes): Add @live attribute.
* testsuite/d-demangle-expected: Add new tests.
Diffstat (limited to 'libiberty/d-demangle.c')
-rw-r--r-- | libiberty/d-demangle.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libiberty/d-demangle.c b/libiberty/d-demangle.c index 5856bc2930f..f2d6946ecad 100644 --- a/libiberty/d-demangle.c +++ b/libiberty/d-demangle.c @@ -578,6 +578,10 @@ dlang_attributes (string *decl, const char *mangled) mangled++; string_append (decl, "scope "); continue; + case 'm': /* @live */ + mangled++; + string_append (decl, "@live "); + continue; default: /* unknown attribute */ return NULL; |