[llvm-pdbdump] Minor prepatory refactor of Class Def Dumper.
authorZachary Turner <zturner@google.com>
Wed, 12 Apr 2017 23:18:51 +0000 (23:18 +0000)
committerZachary Turner <zturner@google.com>
Wed, 12 Apr 2017 23:18:51 +0000 (23:18 +0000)
commit9e7dda3c6df231c3f682659cccaa3abf736899c4
tree8f61807da77853a1863cade82f1e080dee2c10e2
parentc883a8c6dce207a494c6c3a54de1492635acb664
[llvm-pdbdump] Minor prepatory refactor of Class Def Dumper.

In a followup patch I intend to introduce an additional dumping
mode which dumps a graphical representation of a class's layout.
In preparation for this, the text-based layout printer needs to
be split out from the graphical layout printer, and both need
to be able to use the same code for printing the intro and outro
of a class's definition (e.g. base class list, etc).

This patch does so, and in the process introduces a skeleton
definition for the graphical printer, while currently making
the graphical printer just print nothing.

NFC

llvm-svn: 300134
12 files changed:
llvm/include/llvm/DebugInfo/PDB/UDTLayout.h
llvm/lib/DebugInfo/PDB/UDTLayout.cpp
llvm/test/tools/llvm-pdbdump/simple-padding.test
llvm/tools/llvm-pdbdump/CMakeLists.txt
llvm/tools/llvm-pdbdump/PrettyClassDefinitionDumper.cpp
llvm/tools/llvm-pdbdump/PrettyClassDefinitionDumper.h
llvm/tools/llvm-pdbdump/PrettyClassLayoutGraphicalDumper.cpp [new file with mode: 0644]
llvm/tools/llvm-pdbdump/PrettyClassLayoutGraphicalDumper.h [new file with mode: 0644]
llvm/tools/llvm-pdbdump/PrettyClassLayoutTextDumper.cpp [new file with mode: 0644]
llvm/tools/llvm-pdbdump/PrettyClassLayoutTextDumper.h [new file with mode: 0644]
llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp
llvm/tools/llvm-pdbdump/llvm-pdbdump.h