[PATCH] D40279: [libcxxabi][demangler] Add demangling for __attribute__((abi_tag))
Erik Pilkington via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 20 19:17:23 PST 2017
erik.pilkington created this revision.
This patch adds demangling support for `__attribute__((abi_tag))`. I.e, the following function: `__attribute__((abi_tag("foo"))) void f() {}` mangles to `_Z1fB3foov`, and now demangles to `f[abi:foo]()` (this syntax is the same as GCC's demangler). This patch parses the attribute everywhere in the grammer ItaniumMangle emits it.
While looking through ItaniumMangle, I noticed a couple of features that it supports that this file doesn't, so I added them to a list of them to the top. I'm going to submit some more patches for those as well.
https://bugs.llvm.org/show_bug.cgi?id=35310
Thanks for taking a look!
https://reviews.llvm.org/D40279
Files:
src/cxa_demangle.cpp
test/test_demangle.pass.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40279.123704.patch
Type: text/x-patch
Size: 5375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171121/894c3013/attachment.bin>
More information about the cfe-commits
mailing list