[codeview] Emit nested enums and typedefs from classes
authorReid Kleckner <rnk@google.com>
Tue, 8 Aug 2017 20:30:14 +0000 (20:30 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 8 Aug 2017 20:30:14 +0000 (20:30 +0000)
commite2e82061f9d5c340f470840f7e64bca597e4b344
tree4a06e0aea2a12ce79ebd874addc58279c28bed5b
parent9f338dcd4fa43eb352d316039b53d374a87fbd7a
[codeview] Emit nested enums and typedefs from classes

Previously we limited ourselves to only emitting nested classes, but we
need other kinds of types as well.

This fixes the Visual Studio STL visualizers, so that users can
visualize std::string and other objects.

llvm-svn: 310410
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/CodeGen/CGDebugInfo.h
clang/test/CodeGenCXX/debug-info-codeview-nested-types.cpp [new file with mode: 0644]
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
llvm/test/DebugInfo/COFF/nested-types.ll [new file with mode: 0644]