[cfe-commits] {PATCH] Apply calling conventions to function types

Charles Davis cdavis at mymail.mines.edu
Wed Feb 3 09:55:01 PST 2010


My last patch allows function types to hold a calling convention. This
patch has Sema actually apply them if a calling-convention attribute is
present.

It also fixes some issues with the last patch:
- Calling conventions are now printed in the TypePrinter.
- The calling convention is now factored into the FoldingSetNode ID.

This is an updated version of the patch I sent to cfe-dev. This one
passes all the tests, including some new tests I added to
Sema/callingconv.c. It also does not assert, unlike the last one :).

I'm more confident about this one, but it still seems like it could use
some improvement. Comments are welcome.

Chip
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: callconv-in-types-2.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100203/9e9298d9/attachment.ksh>


More information about the cfe-commits mailing list