iains added a comment. This seems like a reasonable start, and is a step forward. For the VAArgs, this will be self-consistent, but to be compliant with the system ABI, I think you'll need to account the different padding rules for small aggregates, as per pp14 of "Mac_OS_X_ABI_Function_Calls". Specifically, 1 and 2 byte aggregates are right-aligned and padded on the left, but sizes 3 and above are left-aligned and padded on the right.
I have a more complete ABIInfo implementation, but it needs forward-porting to trunk. Will let you know when that's done. Repository: rL LLVM https://reviews.llvm.org/D33499 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits