[PATCH] D31800: [llvm-pdbdump] Display padding bytes on record layout

Zachary Turner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 6 18:42:10 PDT 2017


zturner created this revision.

When dumping classes, show where padding occurs, and at the end of the class print statistics about how many bytes total of padding exist in a class.

Since PDB doesn't specifically contain information about padding, we have to mimic this by sort of reversing a small portion of the record layout algorithm (e.g. looking at offsets and sizes and trying to determine whether something is part of the same field or a new field).


https://reviews.llvm.org/D31800

Files:
  llvm/tools/llvm-pdbdump/LinePrinter.cpp
  llvm/tools/llvm-pdbdump/LinePrinter.h
  llvm/tools/llvm-pdbdump/PrettyClassDefinitionDumper.cpp
  llvm/tools/llvm-pdbdump/PrettyClassDefinitionDumper.h
  llvm/tools/llvm-pdbdump/PrettyVariableDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31800.94472.patch
Type: text/x-patch
Size: 8650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170407/8746cbc1/attachment.bin>


More information about the llvm-commits mailing list