[llvm-objcopy] [COFF] Implmement --strip-unneeded and -x/--discard-all for symbols
[llvm-complete.git] / tools / llvm-pdbutil / PrettyTypeDumper.h
blob36e586fea7e3166e014d5579990392497cab3331
1 //===- PrettyTypeDumper.h - PDBSymDumper implementation for types *- C++ *-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_TOOLS_LLVMPDBDUMP_PRETTYTYPEDUMPER_H
11 #define LLVM_TOOLS_LLVMPDBDUMP_PRETTYTYPEDUMPER_H
13 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
15 namespace llvm {
16 namespace pdb {
17 class LinePrinter;
18 class ClassLayout;
20 class TypeDumper : public PDBSymDumper {
21 public:
22 TypeDumper(LinePrinter &P);
24 void start(const PDBSymbolExe &Exe);
26 void dump(const PDBSymbolTypeEnum &Symbol) override;
27 void dump(const PDBSymbolTypeTypedef &Symbol) override;
28 void dump(const PDBSymbolTypeFunctionSig &Symbol) override;
29 void dump(const PDBSymbolTypeArray &Symbol) override;
30 void dump(const PDBSymbolTypeBuiltin &Symbol) override;
31 void dump(const PDBSymbolTypePointer &Symbol) override;
32 void dump(const PDBSymbolTypeVTableShape &Symbol) override;
33 void dump(const PDBSymbolTypeUDT &Symbol) override;
35 void dumpClassLayout(const ClassLayout &Class);
37 private:
38 LinePrinter &Printer;
42 #endif