[PATCH] D35738: Enable llvm-pdbutil to list enumerations using native PDB reader

Adrian McCarthy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 4 10:01:42 PDT 2017


amccarth updated this revision to Diff 109767.
amccarth added a comment.

Simplified NativeEnumTypes by moving work to NativeSession which already had
access to Tpi and thus LazyRandomTypeCollection.  NativeEnumTypes can now
exactly answer how many objects is knows about because it scans the types
when its constructed and maintains a vector of the relevant TypeIndexes.


https://reviews.llvm.org/D35738

Files:
  llvm/include/llvm/DebugInfo/PDB/Native/NativeEnumSymbol.h
  llvm/include/llvm/DebugInfo/PDB/Native/NativeEnumTypes.h
  llvm/include/llvm/DebugInfo/PDB/Native/NativeSession.h
  llvm/include/llvm/DebugInfo/PDB/PDBSymbol.h
  llvm/lib/DebugInfo/PDB/CMakeLists.txt
  llvm/lib/DebugInfo/PDB/Native/NativeEnumSymbol.cpp
  llvm/lib/DebugInfo/PDB/Native/NativeEnumTypes.cpp
  llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp
  llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp
  llvm/test/DebugInfo/PDB/Native/pdb-native-enums.test
  llvm/tools/llvm-pdbutil/PrettyEnumDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35738.109767.patch
Type: text/x-patch
Size: 17490 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170804/85673b02/attachment.bin>


More information about the llvm-commits mailing list