[LLVMdev] Decoding munged function names
Chris Lattner
clattner at apple.com
Thu Feb 4 14:11:02 PST 2010
On Feb 4, 2010, at 2:03 PM, Sarah Thompson wrote:
> Hi folks,
>
> I'm currently extending my model checker to collect coverage
> information, and as part of this I'm finding a need to get a more
> friendly version of munged C++ identifiers than the name used by the
> linker. For example, though internally, something like '_Z7thread1Pv'
> is fine as an identifier, I'd like to be able to give the user
> something more readable. Since the disassembler seems to be able to do
> this, I'd like to be able to do it too, though I can't spot anything
> in the Function class interface that looks like a candidate. My code
> needs to live inside an opt pass, effectively within one of my code
> annotation passes.
Hi Sarah,
libstdc++ and other Itanium C++ ABI conformant libraries provide a
demangler:
http://www.codesourcery.com/public/cxx-abi/abi.html#demangler
-Chris
More information about the llvm-dev
mailing list