1 //===- PrettyClassLayoutGraphicalDumper.h -----------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_TOOLS_LLVMPDBDUMP_PRETTYCLASSLAYOUTGRAPHICALDUMPER_H
11 #define LLVM_TOOLS_LLVMPDBDUMP_PRETTYCLASSLAYOUTGRAPHICALDUMPER_H
13 #include "llvm/ADT/BitVector.h"
15 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
22 class StorageItemBase;
25 class PrettyClassLayoutGraphicalDumper : public PDBSymDumper {
27 PrettyClassLayoutGraphicalDumper(LinePrinter &P, uint32_t InitialOffset);
29 bool start(const UDTLayoutBase &Layout);
31 void dump(const PDBSymbolTypeBaseClass &Symbol) override;
32 void dump(const PDBSymbolData &Symbol) override;
33 void dump(const PDBSymbolTypeVTable &Symbol) override;
36 void printPaddingRow(uint32_t Amount);
40 StorageItemBase *CurrentItem = nullptr;
41 uint32_t ClassOffsetZero = 0;
42 uint32_t CurrentAbsoluteOffset = 0;
43 bool DumpedAnything = false;