[CodeView] Omit forward references for unnamed structs and unions
authorBrock Wyma <brock.wyma@intel.com>
Mon, 11 Jun 2018 01:39:34 +0000 (01:39 +0000)
committerBrock Wyma <brock.wyma@intel.com>
Mon, 11 Jun 2018 01:39:34 +0000 (01:39 +0000)
commitb60532f89af6672ef86b7254df1c7226243497f3
treeca9d90145f27df78a893e1f32bfe5b97fbf33a8d
parente71ad1f6d01f84283500bab02e762477ea5dad44
[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: 334382
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
llvm/test/DebugInfo/COFF/bitfields.ll
llvm/test/DebugInfo/COFF/lambda.ll [new file with mode: 0644]
llvm/test/DebugInfo/COFF/types-recursive-unnamed.ll [new file with mode: 0644]
llvm/test/DebugInfo/COFF/unnamed.ll [new file with mode: 0644]