[cfe-dev] Handling ignored calling conventions
Aaron Ballman
aaron at aaronballman.com
Mon Sep 10 19:26:27 PDT 2012
On Mon, Sep 10, 2012 at 10:18 PM, John McCall <rjmccall at apple.com> wrote:
>> Do you agree with what I think the consensus is? Does this seem like
>> a reasonable solution to you?
>
> Does that even solve your problem? MIPS does not accept __stdcall.
> x64 "accepts" __stdcall but ignores it. How are you differentiating
> the cases?
If we want to turn illegal calling conventions into
error/warning/acceptable, then I could use an enum for the return
value of this call in TargetInfo instead of a boolean. This would
provide more flexibility for the various targets to decide what to do
for a given calling convention.
~Aaron
More information about the cfe-dev
mailing list