[LLVMdev] C++ demangling in LLVM
Chandler Carruth
chandlerc at google.com
Thu Jul 5 00:17:29 PDT 2012
On Thu, Jul 5, 2012 at 12:10 AM, <bigcheesegs at gmail.com> wrote:
> On Jul 5, 2012, at 1:08 AM, Chandler Carruth <chandlerc at google.com> wrote:
>
> In the same way that the core LLVM libraries have support routines for
> DWARF, I think that both mangling and demangling should be provided as well.
>
>
> How would LLVM provide support for mangling? And what tools actually need
> it? I also wonder if we need more from a demangler than just a string. I
> know linker diagnostics would benefit from a deeper understanding of the
> name without having to parse C++ decls.
>
Somewhat off the cuff, but I think it would be nice if commandline object
inspection tools could query for a particular symbol when the user
specified it in the C++, unmangled form.
Generally, it seems useful to unify the mangling and unmangling code if
only so that we constantly round-trip test both halves and don't end up
with divergences.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120705/aee853a5/attachment.html>
More information about the llvm-dev
mailing list