Include unreferenced nested types in member list only for CodeView
authorAdrian McCarthy <amccarth@google.com>
Thu, 21 Jul 2016 13:16:14 +0000 (13:16 +0000)
committerAdrian McCarthy <amccarth@google.com>
Thu, 21 Jul 2016 13:16:14 +0000 (13:16 +0000)
commite89c62a1028af8f18426dee35689113474cbe382
treedef61f243d652e2c5dbeafbd1062bbd7972cef18
parentedb885cb1230b0693f68d13e5de3baf6b156ef73
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.

llvm-svn: 276271
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/CodeGen/CGDebugInfo.h
clang/test/CodeGenCXX/debug-info-dup-fwd-decl.cpp
clang/test/CodeGenCXX/debug-info-ms-abi.cpp
clang/test/Modules/ModuleDebugInfo.cpp