xref: /freebsd/contrib/llvm-project/llvm/tools/llvm-pdbutil/PrettyCompilandDumper.h (revision 19261079b74319502c6ffa1249920079f0f69a72)
1 //===- PrettyCompilandDumper.h - llvm-pdbutil compiland 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_PRETTYCOMPILANDDUMPER_H
10 #define LLVM_TOOLS_LLVMPDBDUMP_PRETTYCOMPILANDDUMPER_H
11 
12 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
13 
14 namespace llvm {
15 namespace pdb {
16 
17 class LinePrinter;
18 
19 typedef int CompilandDumpFlags;
20 class CompilandDumper : public PDBSymDumper {
21 public:
22   enum Flags { None = 0x0, Children = 0x1, Symbols = 0x2, Lines = 0x4 };
23 
24   CompilandDumper(LinePrinter &P);
25 
26   void start(const PDBSymbolCompiland &Symbol, CompilandDumpFlags flags);
27 
28   void dump(const PDBSymbolCompilandDetails &Symbol) override;
29   void dump(const PDBSymbolCompilandEnv &Symbol) override;
30   void dump(const PDBSymbolData &Symbol) override;
31   void dump(const PDBSymbolFunc &Symbol) override;
32   void dump(const PDBSymbolLabel &Symbol) override;
33   void dump(const PDBSymbolThunk &Symbol) override;
34   void dump(const PDBSymbolTypeTypedef &Symbol) override;
35   void dump(const PDBSymbolUnknown &Symbol) override;
36   void dump(const PDBSymbolUsingNamespace &Symbol) override;
37 
38 private:
39   LinePrinter &Printer;
40 };
41 }
42 }
43 
44 #endif
45