[LLVMdev] C++ demangling in LLVM
Duncan Sands
baldrick at free.fr
Thu Jul 5 05:01:12 PDT 2012
Hi Chandler,
On 05/07/12 09:17, Chandler Carruth wrote:
> On Thu, Jul 5, 2012 at 12:10 AM, <bigcheesegs at gmail.com
> <mailto:bigcheesegs at gmail.com>> wrote:
>
> On Jul 5, 2012, at 1:08 AM, Chandler Carruth <chandlerc at google.com
> <mailto: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.
this would be nice for Ada too, which also does name mangling (differently to
C++ of course) and presumably lots of other languages as well.
Ciao, Duncan.
>
> 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.
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
More information about the llvm-dev
mailing list