[cfe-commits] [PATCH] Virtual methods with mismatched calling conventions
Aaron Ballman
aaron at aaronballman.com
Sat Dec 1 10:36:08 PST 2012
This patch addresses PR14339 so that you are no longer able to
override a member function with mismatched calling conventions. Eg)
class E {
public:
virtual void __attribute__((stdcall)) g();
};
class F : public E {
public:
void g();
};
In order to accomplish this, the patch adds some functionality to the
TargetInfo subclasses so they can decide the default calling
convention based off the type of function it is to be attached to,
when that information is available.
Comments and suggestions welcome!
~Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: virt_cc.patch
Type: application/octet-stream
Size: 10190 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121201/0fe24617/attachment.obj>
More information about the cfe-commits
mailing list