From 73d726a6cc2e4382bee533ea2e807ed7f831c74c Mon Sep 17 00:00:00 2001 From: Adrian McCarthy Date: Wed, 6 Jul 2016 14:46:42 +0000 Subject: Include debug info for nested structs and classes 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. Differential Revision: http://reviews.llvm.org/D21705 llvm-svn: 274628 --- clang/lib/CodeGen/CGDebugInfo.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/CodeGen/CGDebugInfo.h') diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index 366dd81ac81..70c16462965 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -254,6 +254,8 @@ class CGDebugInfo { llvm::DIFile *F, SmallVectorImpl &E, llvm::DIType *RecordTy, const RecordDecl *RD); + void CollectRecordNestedRecord(const RecordDecl *RD, + SmallVectorImpl &E); void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile *F, SmallVectorImpl &E, llvm::DICompositeType *RecordTy); -- cgit v1.2.3