Zachary Turner | d311739 | 2016-06-03 19:28:33 +0000 | [diff] [blame] | 1 | //===- LLVMOutputStyle.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_LLVMOUTPUTSTYLE_H |
| 11 | #define LLVM_TOOLS_LLVMPDBDUMP_LLVMOUTPUTSTYLE_H |
| 12 | |
| 13 | #include "OutputStyle.h" |
| 14 | |
| 15 | #include "llvm/DebugInfo/CodeView/TypeDumper.h" |
| 16 | #include "llvm/Support/ScopedPrinter.h" |
| 17 | |
| 18 | namespace llvm { |
| 19 | namespace pdb { |
| 20 | class LLVMOutputStyle : public OutputStyle { |
| 21 | public: |
| 22 | LLVMOutputStyle(PDBFile &File); |
| 23 | |
Zachary Turner | a30bd1a | 2016-06-30 17:42:48 +0000 | [diff] [blame] | 24 | Error dump() override; |
Zachary Turner | 7120a47 | 2016-06-06 20:37:05 +0000 | [diff] [blame] | 25 | |
Zachary Turner | d311739 | 2016-06-03 19:28:33 +0000 | [diff] [blame] | 26 | private: |
Zachary Turner | a30bd1a | 2016-06-30 17:42:48 +0000 | [diff] [blame] | 27 | Error dumpFileHeaders(); |
| 28 | Error dumpStreamSummary(); |
Rui Ueyama | 7a5cdc6 | 2016-07-29 21:38:00 +0000 | [diff] [blame] | 29 | Error dumpFreePageMap(); |
Zachary Turner | a30bd1a | 2016-06-30 17:42:48 +0000 | [diff] [blame] | 30 | Error dumpStreamBlocks(); |
| 31 | Error dumpStreamData(); |
| 32 | Error dumpInfoStream(); |
| 33 | Error dumpNamedStream(); |
| 34 | Error dumpTpiStream(uint32_t StreamIdx); |
| 35 | Error dumpDbiStream(); |
| 36 | Error dumpSectionContribs(); |
| 37 | Error dumpSectionMap(); |
| 38 | Error dumpPublicsStream(); |
| 39 | Error dumpSectionHeaders(); |
| 40 | Error dumpFpoStream(); |
| 41 | |
| 42 | void flush(); |
| 43 | |
Zachary Turner | d311739 | 2016-06-03 19:28:33 +0000 | [diff] [blame] | 44 | PDBFile &File; |
| 45 | ScopedPrinter P; |
| 46 | codeview::CVTypeDumper TD; |
| 47 | }; |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | #endif |