[llvm-objcopy] [COFF] Implmement --strip-unneeded and -x/--discard-all for symbols
[llvm-complete.git] / tools / llvm-pdbutil / PrettyVariableDumper.h
blobcacf1ce9577b03eda8d53525c6527a5904d0ea3a
1 //===- PrettyVariableDumper.h - PDBSymDumper variable dumper ----*- 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_PRETTYVARIABLEDUMPER_H
11 #define LLVM_TOOLS_LLVMPDBDUMP_PRETTYVARIABLEDUMPER_H
13 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
15 namespace llvm {
17 class StringRef;
19 namespace pdb {
21 class LinePrinter;
23 class VariableDumper : public PDBSymDumper {
24 public:
25 VariableDumper(LinePrinter &P);
27 void start(const PDBSymbolData &Var, uint32_t Offset = 0);
28 void start(const PDBSymbolTypeVTable &Var, uint32_t Offset = 0);
29 void startVbptr(uint32_t Offset, uint32_t Size);
31 void dump(const PDBSymbolTypeArray &Symbol) override;
32 void dump(const PDBSymbolTypeBuiltin &Symbol) override;
33 void dump(const PDBSymbolTypeEnum &Symbol) override;
34 void dump(const PDBSymbolTypeFunctionSig &Symbol) override;
35 void dump(const PDBSymbolTypePointer &Symbol) override;
36 void dump(const PDBSymbolTypeTypedef &Symbol) override;
37 void dump(const PDBSymbolTypeUDT &Symbol) override;
39 void dumpRight(const PDBSymbolTypeArray &Symbol) override;
40 void dumpRight(const PDBSymbolTypeFunctionSig &Symbol) override;
41 void dumpRight(const PDBSymbolTypePointer &Symbol) override;
43 private:
44 void dumpSymbolTypeAndName(const PDBSymbol &Type, StringRef Name);
46 LinePrinter &Printer;
50 #endif