[cfe-dev] Targeting ARM with Clang

David Chisnall csdavec at swan.ac.uk
Wed Mar 30 06:40:34 PDT 2011


Hi Howard,

On 30 Mar 2011, at 14:07, Howard Hinnant wrote:

> I've been working on a clean-sheet replacement for:
> 
> char* __cxa_demangle(const char* mangled_name,
> 				   char* buf,
> 				   size_t* n,
> 				   int* status);


Code to do this for the ARM mangling scheme, as well as the GNU v2 and v3 schemes, already exists in the elftoolchain project, under a BSD license.  They're part of the libelftc library, designed to be used by various tools.

We used them via a very small wrapper to implement the __cxa_demangle() in a libsupc++ replacement without any problems.  

David




More information about the cfe-dev mailing list