[cfe-commits] [PATCH] Ignored calling conventions

John McCall rjmccall at apple.com
Thu Sep 6 18:09:12 PDT 2012


On Sep 6, 2012, at 6:03 PM, João Matos wrote:
> I actually liked the patch you posted on IRC better. It modified the mangling while it was being stored on FunctionType, which means mangling code (and code gen?) don't need to me modified. This one is duplicating the same logic in both mangling and code-gen.
> 
> On Fri, Sep 7, 2012 at 1:58 AM, John McCall <rjmccall at apple.com> wrote:
> How ignored is it, exactly?  Is it still checked syntactically? for
> redundancy? in the type system at all?
> 
> Basically, I'm asking if we can #define it. :)
> 
> John.
> 
> Won't we lose the type information on the AST then? And have the problems Aaron mentioned such as incorrect behavior when pretty-printing or rewriting code.

If MSVC deals with it in the preprocessor — and I'm not saying they do, I'm just saying it's a possibility — then that's what we should do.  If they check it like a normal CC but ignore it during code generation, that's different.

John.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120906/bfeb2f0c/attachment.html>


More information about the cfe-commits mailing list