[cfe-commits] [PATCH] Properly emit calls through function pointers with calling conventions
Charles Davis
cdavis at mymail.mines.edu
Thu Feb 4 10:27:50 PST 2010
This is the last in my series of calling-convention-related patches. Now
that we have the calling convention properly stored in the type, we can
use it instead of asking the target llvm::Function (if there even is
one, which there isn't in the case of a function pointer) what its
calling convention is.
This is the simplest by far of the three patches. In fact, I wonder if I
should have folded this into patch 2...
Doug, you were right about this. After the type-system work was done,
fixing the codegen was a simple matter of calling
FunctionType::getCallConv() and converting it to an LLVM calling convention.
Included is a small test for calls through function pointers that were
declared with calling conventions.
Chip
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: callconv-in-types-3.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100204/f809fffd/attachment.ksh>
More information about the cfe-commits
mailing list