]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/llvm/tools/llvm-pdbutil/PrettyClassDefinitionDumper.h
MFC r355940:
[FreeBSD/FreeBSD.git] / contrib / llvm-project / llvm / tools / llvm-pdbutil / PrettyClassDefinitionDumper.h
1 //===- PrettyClassDefinitionDumper.h ----------------------------*- 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_PRETTYCLASSDEFINITIONDUMPER_H
10 #define LLVM_TOOLS_LLVMPDBDUMP_PRETTYCLASSDEFINITIONDUMPER_H
11
12 #include "llvm/ADT/BitVector.h"
13
14 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
15 #include "llvm/DebugInfo/PDB/PDBSymbolData.h"
16 #include "llvm/DebugInfo/PDB/PDBSymbolFunc.h"
17
18 #include <list>
19 #include <memory>
20 #include <unordered_map>
21
22 namespace llvm {
23 class BitVector;
24
25 namespace pdb {
26
27 class ClassLayout;
28 class LinePrinter;
29
30 class ClassDefinitionDumper : public PDBSymDumper {
31 public:
32   ClassDefinitionDumper(LinePrinter &P);
33
34   void start(const PDBSymbolTypeUDT &Class);
35   void start(const ClassLayout &Class);
36
37 private:
38   void prettyPrintClassIntro(const ClassLayout &Class);
39   void prettyPrintClassOutro(const ClassLayout &Class);
40
41   LinePrinter &Printer;
42   bool DumpedAnything = false;
43 };
44 }
45 }
46 #endif