OSDN Git Service

Enable llvm-pdbutil to list enumerations using native PDB reader
authorAdrian McCarthy <amccarth@google.com>
Fri, 4 Aug 2017 22:37:58 +0000 (22:37 +0000)
committerAdrian McCarthy <amccarth@google.com>
Fri, 4 Aug 2017 22:37:58 +0000 (22:37 +0000)
commit2d30fac6e9ddaf3bef828d2ce76aab3651c5ad45
tree0a23a67424e1cf4506a40d79b7dd4ca2d4246f8c
parent09cd716275747bd2559688f87195328b7223eef0
Enable llvm-pdbutil to list enumerations using native PDB reader

This extends the native reader to enable llvm-pdbutil to list the enums in a
PDB and it includes a simple test. It does not yet list the values in the
enumerations, which requires an actual implementation of
NativeEnumSymbol::FindChildren.

To exercise this code, use a command like:

    llvm-pdbutil pretty -native -enums foo.pdb

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310144 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/PDB/Native/NativeEnumSymbol.h [new file with mode: 0644]
include/llvm/DebugInfo/PDB/Native/NativeEnumTypes.h [new file with mode: 0644]
include/llvm/DebugInfo/PDB/Native/NativeSession.h
include/llvm/DebugInfo/PDB/PDBSymbol.h
lib/DebugInfo/PDB/CMakeLists.txt
lib/DebugInfo/PDB/Native/NativeEnumSymbol.cpp [new file with mode: 0644]
lib/DebugInfo/PDB/Native/NativeEnumTypes.cpp [new file with mode: 0644]
lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp
lib/DebugInfo/PDB/Native/NativeSession.cpp
test/DebugInfo/PDB/Native/pdb-native-enums.test [new file with mode: 0644]
tools/llvm-pdbutil/PrettyEnumDumper.cpp