Check out MicrosoftCXXABI::getMemberPointerSize(const MemberPointerType *MPT), you can probably patch it there.<div><br><div class="gmail_quote">On Tue, Oct 16, 2012 at 2:26 PM, Devid <span dir="ltr"><<a href="mailto:DevOmem@web.de" target="_blank">DevOmem@web.de</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am working on Windows with Clang and have one big problem.<br>
<br>
How to force Clang/LLVM to make Member Function Pointers size the same as<br>
Function Pointers?<br>
(8 bytes on x64)<br>
<br>
The behavior of MFP need to be the same as Microsoft Compiler with /vms<br>
switch.<br>
<br>
//vms         Specifies the most general representation of a pointer to a<br>
member of a class to be one that uses either no inheritance or single<br>
inheritance.      The corresponding inheritance keyword and argument to<br>
#pragma pointers_to_members is single_inheritance.     This is the smallest<br>
possible representation of a pointer to a member of a class.     If the<br>
inheritance model of a class definition for which a pointer to a member is<br>
declared is multiple or virtual, the compiler generates an error./<br>
<br>
I could not find any Clang switch for this, but may be the Clang code can be<br>
changes to force this ?<br>
The the question is where to start and how hard this will be ?<br>
<br>
thanks!<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://clang-developers.42468.n3.nabble.com/Clang-LLVM-Member-Function-Pointers-size-and-behavior-tp4027414.html" target="_blank">http://clang-developers.42468.n3.nabble.com/Clang-LLVM-Member-Function-Pointers-size-and-behavior-tp4027414.html</a><br>


Sent from the Clang Developers mailing list archive at Nabble.com.<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Joćo Matos<br>
</div>