]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/llvm-pdbutil/DumpOutputStyle.h
MFC r316858 7280 Allow changing global libzpool variables in zdb
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / llvm-pdbutil / DumpOutputStyle.h
1 //===- DumpOutputStyle.h -------------------------------------- *- 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 //===----------------------------------------------------------------------===//
9
10 #ifndef LLVM_TOOLS_LLVMPDBDUMP_DUMPOUTPUTSTYLE_H
11 #define LLVM_TOOLS_LLVMPDBDUMP_DUMPOUTPUTSTYLE_H
12
13 #include "LinePrinter.h"
14 #include "OutputStyle.h"
15
16 #include "llvm/ADT/Optional.h"
17 #include "llvm/ADT/SmallVector.h"
18
19 #include <string>
20
21 namespace llvm {
22 class BitVector;
23
24 namespace codeview {
25 class LazyRandomTypeCollection;
26 }
27
28 namespace pdb {
29 class DumpOutputStyle : public OutputStyle {
30 public:
31   DumpOutputStyle(PDBFile &File);
32
33   Error dump() override;
34
35 private:
36   Expected<codeview::LazyRandomTypeCollection &> initializeTypes(uint32_t SN);
37
38   Error dumpFileSummary();
39   Error dumpStreamSummary();
40   Error dumpStringTable();
41   Error dumpLines();
42   Error dumpInlineeLines();
43   Error dumpXmi();
44   Error dumpXme();
45   Error dumpTpiStream(uint32_t StreamIdx);
46   Error dumpModules();
47   Error dumpModuleFiles();
48   Error dumpModuleSyms();
49   Error dumpPublics();
50   Error dumpSectionContribs();
51   Error dumpSectionMap();
52
53   PDBFile &File;
54   LinePrinter P;
55   std::unique_ptr<codeview::LazyRandomTypeCollection> TpiTypes;
56   std::unique_ptr<codeview::LazyRandomTypeCollection> IpiTypes;
57   SmallVector<std::string, 32> StreamPurposes;
58 };
59 } // namespace pdb
60 } // namespace llvm
61
62 #endif