[cfe-dev] Clang/LLVM Member Function Pointers size and behavior?
João Matos
ripzonetriton at gmail.com
Tue Oct 16 08:12:34 PDT 2012
Check out MicrosoftCXXABI::getMemberPointerSize(const MemberPointerType
*MPT), you can probably patch it there.
On Tue, Oct 16, 2012 at 2:26 PM, Devid <DevOmem at web.de> wrote:
> I am working on Windows with Clang and have one big problem.
>
> How to force Clang/LLVM to make Member Function Pointers size the same as
> Function Pointers?
> (8 bytes on x64)
>
> The behavior of MFP need to be the same as Microsoft Compiler with /vms
> switch.
>
> //vms Specifies the most general representation of a pointer to a
> member of a class to be one that uses either no inheritance or single
> inheritance. The corresponding inheritance keyword and argument to
> #pragma pointers_to_members is single_inheritance. This is the smallest
> possible representation of a pointer to a member of a class. If the
> inheritance model of a class definition for which a pointer to a member is
> declared is multiple or virtual, the compiler generates an error./
>
> I could not find any Clang switch for this, but may be the Clang code can
> be
> changes to force this ?
> The the question is where to start and how hard this will be ?
>
> thanks!
>
>
>
> --
> View this message in context:
> http://clang-developers.42468.n3.nabble.com/Clang-LLVM-Member-Function-Pointers-size-and-behavior-tp4027414.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
--
João Matos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121016/4852a774/attachment.html>
More information about the cfe-dev
mailing list