[cfe-commits] [patch] CXXABI getter/setter

John McCall rjmccall at apple.com
Sun Aug 19 14:41:54 PDT 2012


On Aug 19, 2012, at 2:55 AM, João Matos wrote:
> Well, my use case is for doing name mangling correctly with the MS and Itanium manglers.

You want to take an existing AST and apply both MS and Itanium manglings to it,
regardless of which ABI it was parsed under?  I think the correct approach is to
explicitly create your own mangler instance, rather than relying on the information
from the ASTContext to make one.

Whether this is actually sensible depends on what you're really trying to do.
Sean's point that the ABI can substantially affect the AST isn't just notional —
most of the time, things like sizes aren't mangled, but if they're used as a
template argument they certainly will be.

John.



More information about the cfe-commits mailing list