[LLVMdev] How to demange C++ names

Chris Lattner clattner at apple.com
Fri Aug 27 11:48:37 PDT 2010


On Aug 27, 2010, at 11:43 AM, Xiaolong Tang wrote:

> Hi Renato, 
> 
>>> Just wondering if LLVM has any command options or tool to allow for
>>> demangling C++ names from the LLVM bitcode?
>> 
>> c++filt?
> 
> Do you refer to any particular version of c++filt? I tried, but seemed
> not to work. For example, when I run a command as below: 
> 
>  c++filt _ZNSt4listIiSaIiEEaSERKS1_

Try:
c++filt __ZNSt4listIiSaIiEEaSERKS1_

-Chris

> 
> The output remains the same as the input symbol. 
> 
> By the way, when I run 
> 
>  c++filt -v 
> 
> It outputs: 
> 
>  GNU c++filt 070207 20070207
>  Copyright 2005 Free Software Foundation, Inc.
>  This program is free software; you may redistribute it under the terms of
>  the GNU General Public License.  This program has absolutely no warranty.
> 
> 
> Best, 
> Xiaolong
> 
> 
> 
> _______________________________________________
> 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