diff options
author | Adrian McCarthy <amccarth@google.com> | 2016-07-21 13:16:14 +0000 |
---|---|---|
committer | Adrian McCarthy <amccarth@google.com> | 2016-07-21 13:16:14 +0000 |
commit | 86087031dabdda4e70e1e5cf0b26f8ab8d3b1736 (patch) | |
tree | fd3a4454ab9d43caad3812d10367c8ae527fa73b /lib/CodeGen/CGDebugInfo.h | |
parent | 8696bb1fa1f3a1c3fa462f49ba1493ecb0b45e3d (diff) |
Include unreferenced nested types in member list only for CodeView
Unreferenced nested structs and classes were omitted from the debug info. In DWARF, this was intentional, to avoid bloat. But for CodeView, we want this information to be consistent with what Microsoft tools would produce and expect.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276271 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.h')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDebugInfo.h b/lib/CodeGen/CGDebugInfo.h index 366dd81ac8..70c1646296 100644 --- a/lib/CodeGen/CGDebugInfo.h +++ b/lib/CodeGen/CGDebugInfo.h @@ -254,6 +254,8 @@ class CGDebugInfo { llvm::DIFile *F, SmallVectorImpl<llvm::Metadata *> &E, llvm::DIType *RecordTy, const RecordDecl *RD); + void CollectRecordNestedRecord(const RecordDecl *RD, + SmallVectorImpl<llvm::Metadata *> &E); void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile *F, SmallVectorImpl<llvm::Metadata *> &E, llvm::DICompositeType *RecordTy); |