[LLVMdev] C++ demangling in LLVM
Alexey Samsonov
samsonov at google.com
Wed Jul 4 21:53:29 PDT 2012
On Wed, Jul 4, 2012 at 11:43 PM, Michael Spencer <bigcheesegs at gmail.com>wrote:
> On Wed, Jul 4, 2012 at 8:33 AM, Alexey Samsonov <samsonov at google.com>
> wrote:
> > Hello!
> >
> > We want to implement in-process symbolizer for {Address,Thread}Sanitizer
> > testing tools that would be based on LLVM libraries.
> > I've noticed that llvm-nm (as well as other tools) doesn't demangle C++
> > names. Is it true, that LLVM doesn't have the code that is capable
> > of that, and if yes, are there any plans to add it?
> > Depending on something like libiberty.a doesn't seem like a good or
> portable
> > solution.
> >
> > --
> > Alexey Samsonov, MSK
> >
>
> Yes, LLVM currently has no C++ demangler, and it needs one. Although I
> have no idea where it should live. It would be nice if it could live
> in clang next to the mangler, but clang doesn't even need a demangler.
> llvm tools, lld, and compiler-rt do.
llvm/Support?
It's not that clear how libcxxabi could be used in llvm tools, as IIUC this
library is built independently.
The demangler implementation there is 10 KLOC which are rather far from
LLVM style.
--
Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120705/63a316dd/attachment.html>
More information about the llvm-dev
mailing list