[LLVMdev] C++ demangling in LLVM

Michael Spencer bigcheesegs at gmail.com
Wed Jul 4 12:43:58 PDT 2012


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.

- Michael Spencer




More information about the llvm-dev mailing list