annotate llvm/tools/llvm-pdbutil/BytesOutputStyle.h @ 198:cef006dc7fd5

CurLexer vanish after EnterMacro finish
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 02 Jun 2021 23:09:47 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 //===- BytesOutputStyle.h ------------------------------------- *- C++ --*-===//
anatofuz
parents:
diff changeset
2 //
anatofuz
parents:
diff changeset
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
anatofuz
parents:
diff changeset
4 // See https://llvm.org/LICENSE.txt for license information.
anatofuz
parents:
diff changeset
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
anatofuz
parents:
diff changeset
6 //
anatofuz
parents:
diff changeset
7 //===----------------------------------------------------------------------===//
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 #ifndef LLVM_TOOLS_LLVMPDBDUMP_BYTESOUTPUTSTYLE_H
anatofuz
parents:
diff changeset
10 #define LLVM_TOOLS_LLVMPDBDUMP_BYTESOUTPUTSTYLE_H
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 #include "LinePrinter.h"
anatofuz
parents:
diff changeset
13 #include "OutputStyle.h"
anatofuz
parents:
diff changeset
14 #include "StreamUtil.h"
anatofuz
parents:
diff changeset
15
anatofuz
parents:
diff changeset
16 #include "llvm/Support/Error.h"
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 namespace llvm {
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 namespace codeview {
anatofuz
parents:
diff changeset
21 class LazyRandomTypeCollection;
anatofuz
parents:
diff changeset
22 }
anatofuz
parents:
diff changeset
23
anatofuz
parents:
diff changeset
24 namespace pdb {
anatofuz
parents:
diff changeset
25
anatofuz
parents:
diff changeset
26 class PDBFile;
anatofuz
parents:
diff changeset
27
anatofuz
parents:
diff changeset
28 class BytesOutputStyle : public OutputStyle {
anatofuz
parents:
diff changeset
29 public:
anatofuz
parents:
diff changeset
30 BytesOutputStyle(PDBFile &File);
anatofuz
parents:
diff changeset
31
anatofuz
parents:
diff changeset
32 Error dump() override;
anatofuz
parents:
diff changeset
33
anatofuz
parents:
diff changeset
34 private:
anatofuz
parents:
diff changeset
35 void dumpNameMap();
anatofuz
parents:
diff changeset
36 void dumpBlockRanges(uint32_t Min, uint32_t Max);
anatofuz
parents:
diff changeset
37 void dumpByteRanges(uint32_t Min, uint32_t Max);
anatofuz
parents:
diff changeset
38 void dumpFpm();
anatofuz
parents:
diff changeset
39 void dumpStreamBytes();
anatofuz
parents:
diff changeset
40
anatofuz
parents:
diff changeset
41 void dumpSectionContributions();
anatofuz
parents:
diff changeset
42 void dumpSectionMap();
anatofuz
parents:
diff changeset
43 void dumpModuleInfos();
anatofuz
parents:
diff changeset
44 void dumpFileInfo();
anatofuz
parents:
diff changeset
45 void dumpTypeServerMap();
anatofuz
parents:
diff changeset
46 void dumpECData();
anatofuz
parents:
diff changeset
47
anatofuz
parents:
diff changeset
48 void dumpModuleSyms();
anatofuz
parents:
diff changeset
49 void dumpModuleC11();
anatofuz
parents:
diff changeset
50 void dumpModuleC13();
anatofuz
parents:
diff changeset
51
anatofuz
parents:
diff changeset
52 void dumpTypeIndex(uint32_t StreamIdx, ArrayRef<uint32_t> Indices);
anatofuz
parents:
diff changeset
53
anatofuz
parents:
diff changeset
54 Expected<codeview::LazyRandomTypeCollection &>
anatofuz
parents:
diff changeset
55 initializeTypes(uint32_t StreamIdx);
anatofuz
parents:
diff changeset
56
anatofuz
parents:
diff changeset
57 std::unique_ptr<codeview::LazyRandomTypeCollection> TpiTypes;
anatofuz
parents:
diff changeset
58 std::unique_ptr<codeview::LazyRandomTypeCollection> IpiTypes;
anatofuz
parents:
diff changeset
59
anatofuz
parents:
diff changeset
60 PDBFile &File;
anatofuz
parents:
diff changeset
61 LinePrinter P;
anatofuz
parents:
diff changeset
62 ExitOnError Err;
anatofuz
parents:
diff changeset
63 SmallVector<StreamInfo, 8> StreamPurposes;
anatofuz
parents:
diff changeset
64 };
anatofuz
parents:
diff changeset
65 } // namespace pdb
anatofuz
parents:
diff changeset
66 } // namespace llvm
anatofuz
parents:
diff changeset
67
anatofuz
parents:
diff changeset
68 #endif