Allow specification of what kinds of class members to dump.
authorZachary Turner <zturner@google.com>
Thu, 6 Apr 2017 23:43:39 +0000 (23:43 +0000)
committerZachary Turner <zturner@google.com>
Thu, 6 Apr 2017 23:43:39 +0000 (23:43 +0000)
commit10169b6d0daa53b741a779909bfe241783aff22e
treec2809fd90f3225bd18869a82cccfbde78666b1ca
parent63230a4e7109b433f8ce09f78b16709229d05bc6
Allow specification of what kinds of class members to dump.

Previously when dumping class definitions, there were only
two modes - on or off.  But it's useful to sometimes get a
little more fine-grained.  For example, you might only want
to see the record layout (for example to look for extraneous
padding).  This patch adds a third mode, layout mode, which
does exactly that.  Only this-relative data members are
displayed in this mode.

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

llvm-svn: 299733
llvm/test/DebugInfo/PDB/DIA/pdbdump-symbol-format.test
llvm/test/tools/llvm-pdbdump/class-layout.test
llvm/test/tools/llvm-pdbdump/regex-filter.test
llvm/tools/llvm-pdbdump/PrettyClassDefinitionDumper.cpp
llvm/tools/llvm-pdbdump/PrettyClassDefinitionDumper.h
llvm/tools/llvm-pdbdump/PrettyTypeDumper.cpp
llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp
llvm/tools/llvm-pdbdump/llvm-pdbdump.h