[cfe-dev] RFC: Flesh out the IRGen C++ ABI class

Charles Davis cdavis at mymail.mines.edu
Tue Oct 26 16:09:52 PDT 2010


On 10/25/10 10:28 PM, John McCall wrote:
> My inclination is to say that "canonicalizing" the function type is the wrong thing to do, and that the default CC for a function in any particular context should be determined by that context.  That means that a default-CC function type is different from a specifically-cdecl function type, but I can live with that.
So you're saying we should get rid of getCanonicalCallConv()? Then I can
dispense with the AST hook, too.

I don't know about this. The whole point of canonicalizing the CC was
that cdecl function types were compatible with default-CC function
types. This matters when, e.g., trying to merge two compatible
declarations, or assigning function pointers. Are you sure you can live
with it now?

Chip



More information about the cfe-dev mailing list