[PATCH] D22939: Only use __cxa_demangle on C++ mangled names
Anna Zaks via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 29 08:22:13 PDT 2016
zaks.anna added a subscriber: zaks.anna.
zaks.anna added a comment.
> On Mac and 32-bit mingw C++ mangled names may have an extra underscore prefix, so the name will
> start with "__Z". You should also handle that case.
Does looking at the status code returned from __cxa_demangle helps in determining if we are dealing with a valid mangled name? (https://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-4.3/a01696.html)
https://reviews.llvm.org/D22939
More information about the llvm-commits
mailing list