[PATCH] [ms-cxxabi] Implement codegen for dereferencing member pointers

Reid Kleckner rnk at google.com
Tue Apr 2 11:00:52 PDT 2013


Hi rjmccall,

Handles all inheritance models for both data and function member
pointers.  This does not require knowing the layout of the vbtable,
because the member pointer itself carries the offset into the vbtable.

Clang still cannot emit multi-field member pointers because it would
need to know the layout of the vbtable to generate the correct offsets.

Also implements isZeroInitializable() and refactors some of the null
member pointer code.

http://llvm-reviews.chandlerc.com/D613

Files:
  lib/CodeGen/MicrosoftCXXABI.cpp
  test/CodeGenCXX/microsoft-abi-member-pointers.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D613.1.patch
Type: text/x-patch
Size: 20932 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130402/c02ef24d/attachment.bin>


More information about the cfe-commits mailing list