[PATCH] D21705: Include debug info for nested structs and classes

Adrian McCarthy via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 24 16:01:01 PDT 2016


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

This includes nested types in the member list, even if there are no members of that type.  Note that structs and classes have themselves as an "implicit struct" as the first member, so we skip implicit ones.

Most of the work (for me) was figuring out the tests that broke as a result of the ordering changes.  In particular, please scrutinize the Objective C one, which doesn't actually nest a struct but has a member function with a pointer to an incomplete struct type.

http://reviews.llvm.org/D21705

Files:
  lib/CodeGen/CGDebugInfo.cpp
  lib/CodeGen/CGDebugInfo.h
  test/CodeGenCXX/debug-info-dup-fwd-decl.cpp
  test/CodeGenCXX/debug-info-indirect-field-decl.cpp
  test/CodeGenCXX/debug-info-ms-abi.cpp
  test/CodeGenObjCXX/debug-info-cyclic.mm

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21705.61853.patch
Type: text/x-patch
Size: 5678 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160624/7da98945/attachment.bin>


More information about the cfe-commits mailing list