[CodeView] Emit UdtSourceLine information for enums
authorAaron Smith <aaron.smith@microsoft.com>
Tue, 6 Mar 2018 18:20:22 +0000 (18:20 +0000)
committerAaron Smith <aaron.smith@microsoft.com>
Tue, 6 Mar 2018 18:20:22 +0000 (18:20 +0000)
commit122d9e79ae0fcc41be6066c3928dd59e5cc59ca6
treedf65145069f986316bff30cf0ec601cc96de3705
parented2211d50fec431b40d77f4573434fecf3923660
[CodeView] Emit UdtSourceLine information for enums

Summary:
- Emit UdtSourceLine information for enums to match MSVC

- Add a method to add UDTSrcLine and call it for all Class/Struct/Union/Enum

- Update test cases to verify the changes

Reviewers: zturner, llvm-commits, rnk

Reviewed By: rnk

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

llvm-svn: 326824
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
llvm/test/DebugInfo/COFF/enum.ll
llvm/test/DebugInfo/COFF/nested-types.ll