1 //===- DumpOutputStyle.h -------------------------------------- *- C++ --*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_TOOLS_LLVMPDBDUMP_DUMPOUTPUTSTYLE_H
11 #define LLVM_TOOLS_LLVMPDBDUMP_DUMPOUTPUTSTYLE_H
13 #include "LinePrinter.h"
14 #include "OutputStyle.h"
16 #include "llvm/ADT/Optional.h"
17 #include "llvm/ADT/SmallVector.h"
25 class LazyRandomTypeCollection;
29 class DumpOutputStyle : public OutputStyle {
31 DumpOutputStyle(PDBFile &File);
33 Error dump() override;
36 Expected<codeview::LazyRandomTypeCollection &> initializeTypes(uint32_t SN);
38 Error dumpFileSummary();
39 Error dumpStreamSummary();
40 Error dumpStringTable();
42 Error dumpInlineeLines();
45 Error dumpTpiStream(uint32_t StreamIdx);
47 Error dumpModuleFiles();
48 Error dumpModuleSyms();
50 Error dumpSectionContribs();
51 Error dumpSectionMap();
55 std::unique_ptr<codeview::LazyRandomTypeCollection> TpiTypes;
56 std::unique_ptr<codeview::LazyRandomTypeCollection> IpiTypes;
57 SmallVector<std::string, 32> StreamPurposes;