1 | //===- PrettyVariableDumper.h - PDBSymDumper variable dumper ----*- C++ -*-===// |
---|---|
2 | // |
3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | // See https://llvm.org/LICENSE.txt for license information. |
5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #ifndef LLVM_TOOLS_LLVMPDBDUMP_PRETTYVARIABLEDUMPER_H |
10 | #define LLVM_TOOLS_LLVMPDBDUMP_PRETTYVARIABLEDUMPER_H |
11 | |
12 | #include "llvm/DebugInfo/PDB/PDBSymDumper.h" |
13 | |
14 | namespace llvm { |
15 | |
16 | class StringRef; |
17 | |
18 | namespace pdb { |
19 | |
20 | class LinePrinter; |
21 | |
22 | class VariableDumper : public PDBSymDumper { |
23 | public: |
24 | VariableDumper(LinePrinter &P); |
25 | |
26 | void start(const PDBSymbolData &Var, uint32_t Offset = 0); |
27 | void start(const PDBSymbolTypeVTable &Var, uint32_t Offset = 0); |
28 | void startVbptr(uint32_t Offset, uint32_t Size); |
29 | |
30 | void dump(const PDBSymbolTypeArray &Symbol) override; |
31 | void dump(const PDBSymbolTypeBuiltin &Symbol) override; |
32 | void dump(const PDBSymbolTypeEnum &Symbol) override; |
33 | void dump(const PDBSymbolTypeFunctionSig &Symbol) override; |
34 | void dump(const PDBSymbolTypePointer &Symbol) override; |
35 | void dump(const PDBSymbolTypeTypedef &Symbol) override; |
36 | void dump(const PDBSymbolTypeUDT &Symbol) override; |
37 | |
38 | void dumpRight(const PDBSymbolTypeArray &Symbol) override; |
39 | void dumpRight(const PDBSymbolTypeFunctionSig &Symbol) override; |
40 | void dumpRight(const PDBSymbolTypePointer &Symbol) override; |
41 | |
42 | private: |
43 | void dumpSymbolTypeAndName(const PDBSymbol &Type, StringRef Name); |
44 | |
45 | LinePrinter &Printer; |
46 | }; |
47 | } |
48 | } |
49 | #endif |
50 |