[CodeView] Omit forward references for unnamed structs and unions
authorBrock Wyma <brock.wyma@intel.com>
Tue, 13 Mar 2018 14:14:16 +0000 (14:14 +0000)
committerBrock Wyma <brock.wyma@intel.com>
Tue, 13 Mar 2018 14:14:16 +0000 (14:14 +0000)
commit4fb918455800c40cd1b40f8b0a7df4b3790b0465
tree9711ef605a2e3276cefd37d8c75c3f5be31f2fc6
parente1a1da11262a906235648087008de43986ac2463
[CodeView] Omit forward references for unnamed structs and unions

Codeview references to unnamed structs and unions are expected to refer to the
complete type definition instead of a forward reference so Visual Studio can
resolve the type properly.

Differential Revision: https://reviews.llvm.org/D32498

llvm-svn: 327397
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
llvm/test/DebugInfo/COFF/bitfields.ll
llvm/test/DebugInfo/COFF/types-recursive-unnamed.ll [new file with mode: 0644]
llvm/test/DebugInfo/COFF/unnamed.ll [new file with mode: 0644]