Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cxx-abi-dev] __cxa_demangle of type manglings


  • To: jason@xxxxxxxxxx
  • Subject: Re: [cxx-abi-dev] __cxa_demangle of type manglings
  • From: Dennis Handly <dhandly@xxxxxxxxxx>
  • Date: Tue, 11 Jan 2005 20:34:08 -0800 (PST)

>From: Jason Merrill <jason@xxxxxxxxxx>
>So your __cxa_demangle always interprets an argument as a type mangling if
>possible?  That's the behavior I'm advocating.

Exactly.

>> There is no need to have another entry.  If it doesn't start with "_Z"
>> it is a type or a non-mangled object or function name.

>Yes, but which?  Type or non-mangled name?  That's the ambiguity, and I
>think the user should be able to control how it is resolved.
Jason

It should alway do the type.  If you don't want the type, don't call
__cxa_demangle because it won't do anything anyway, if it followed
the current ABI exactly.