[PATCH] D11048: CFI: Emit correct bit set information if RTTI is disabled under MS ABI.

Peter Collingbourne peter at pcc.me.uk
Wed Jul 8 18:12:30 PDT 2015


pcc created this revision.
pcc added a reviewer: rnk.
pcc added a subscriber: cfe-commits.

We were previously creating bit set entries at virtual table offset
sizeof(void*) unconditionally under the Microsoft C++ ABI. This is incorrect
if RTTI data is disabled; in that case the "address point" is at offset
0. This change modifies bit set emission to take into account whether RTTI
data is being emitted.

Also make a start on a blacklisting scheme for records.

http://reviews.llvm.org/D11048

Files:
  lib/CodeGen/CGClass.cpp
  lib/CodeGen/CGVTables.cpp
  lib/CodeGen/CodeGenModule.h
  lib/CodeGen/MicrosoftCXXABI.cpp
  test/CodeGenCXX/cfi-ms-rtti.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11048.29294.patch
Type: text/x-patch
Size: 5152 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150709/738f483b/attachment.bin>


More information about the cfe-commits mailing list