[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / tools / llvm-pdbutil / ExplainOutputStyle.h
blob499f2a8648e0b782e117edd718109851d487a397
1 //===- ExplainOutputStyle.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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_TOOLS_LLVMPDBDUMP_EXPLAINOUTPUTSTYLE_H
10 #define LLVM_TOOLS_LLVMPDBDUMP_EXPLAINOUTPUTSTYLE_H
12 #include "OutputStyle.h"
14 #include "llvm/DebugInfo/PDB/Native/LinePrinter.h"
16 #include <string>
18 namespace llvm {
20 namespace pdb {
22 class DbiStream;
23 class InfoStream;
24 class InputFile;
26 class ExplainOutputStyle : public OutputStyle {
28 public:
29 ExplainOutputStyle(InputFile &File, uint64_t FileOffset);
31 Error dump() override;
33 private:
34 Error explainPdbFile();
35 Error explainBinaryFile();
37 bool explainPdbBlockStatus();
39 bool isPdbFpm1() const;
40 bool isPdbFpm2() const;
42 bool isPdbSuperBlock() const;
43 bool isPdbFpmBlock() const;
44 bool isPdbBlockMapBlock() const;
45 bool isPdbStreamDirectoryBlock() const;
46 std::optional<uint32_t> getPdbBlockStreamIndex() const;
48 void explainPdbSuperBlockOffset();
49 void explainPdbFpmBlockOffset();
50 void explainPdbBlockMapOffset();
51 void explainPdbStreamDirectoryOffset();
52 void explainPdbStreamOffset(uint32_t Stream);
53 void explainPdbUnknownBlock();
55 void explainStreamOffset(DbiStream &Stream, uint32_t OffsetInStream);
56 void explainStreamOffset(InfoStream &Stream, uint32_t OffsetInStream);
58 uint32_t pdbBlockIndex() const;
59 uint32_t pdbBlockOffset() const;
61 InputFile &File;
62 const uint64_t FileOffset;
63 LinePrinter P;
65 } // namespace pdb
66 } // namespace llvm
68 #endif