rnk added a comment.

In https://reviews.llvm.org/D42768#994458, @rjmccall wrote:

> No, I mean things like `void foo(__attribute__((swiftcall)) void 
> (*fnptr)());`.


Yeah, this was the example I was going to bring up. There's no function 
parameter declaration to put the NNS on.

So, here's an idea that's probably general. It's what we do for vector types 
and (I think?) Obj-C blocks. Whenever we need to mangle a FunctionType with 
swiftcc, we look at the function type and mangle it as a `struct __swiftcc<T>` 
where T is the FunctionType without the convention.


Repository:
  rC Clang

https://reviews.llvm.org/D42768



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to