[cxx-abi-dev] 3.4 Demangler API, for types
Mark Mitchell
mark at codesourcery.com
Sat Dec 6 05:06:44 UTC 2003
On Fri, 2003-12-05 at 00:14, Dennis Handly wrote:
> Does the following mean we need to demangle types from type_info?
>
> 3.4 Demangler API (__cxa_demangle)
>
> o mangled-name is a pointer to a null-terminated array of characters.
> It may be either an external name, i.e. with a "_Z" prefix, or an
> internal NTBS mangling, e.g. of a type for type_info.
I'm not sure what c++filt behaves differently when reading "i" from a
file than on the command-line.
The demangler should demangle "i" to "int".
If the name doesn't start with "_Z", the demangler should try to
demangle the name as a "<type>", as you say.
--
Mark Mitchell <mark at codesourcery.com>
CodeSourcery, LLC
More information about the cxx-abi-dev
mailing list