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 { |
Zachary Turner | d3c7b8e | 2016-08-01 21:19:45 +0000 | [diff] [blame^] | 19 | class BitVector; |
Zachary Turner | d311739 | 2016-06-03 19:28:33 +0000 | [diff] [blame] | 20 | namespace pdb { |
| 21 | class LLVMOutputStyle : public OutputStyle { |
| 22 | public: |
| 23 | LLVMOutputStyle(PDBFile &File); |
| 24 | |
Zachary Turner | a30bd1a | 2016-06-30 17:42:48 +0000 | [diff] [blame] | 25 | Error dump() override; |
Zachary Turner | 7120a47 | 2016-06-06 20:37:05 +0000 | [diff] [blame] | 26 | |
Zachary Turner | d311739 | 2016-06-03 19:28:33 +0000 | [diff] [blame] | 27 | private: |
Zachary Turner | a30bd1a | 2016-06-30 17:42:48 +0000 | [diff] [blame] | 28 | Error dumpFileHeaders(); |
| 29 | Error dumpStreamSummary(); |
Rui Ueyama | 7a5cdc6 | 2016-07-29 21:38:00 +0000 | [diff] [blame] | 30 | Error dumpFreePageMap(); |
Zachary Turner | a30bd1a | 2016-06-30 17:42:48 +0000 | [diff] [blame] | 31 | Error dumpStreamBlocks(); |
| 32 | Error dumpStreamData(); |
| 33 | Error dumpInfoStream(); |
| 34 | Error dumpNamedStream(); |
| 35 | Error dumpTpiStream(uint32_t StreamIdx); |
| 36 | Error dumpDbiStream(); |
| 37 | Error dumpSectionContribs(); |
| 38 | Error dumpSectionMap(); |
| 39 | Error dumpPublicsStream(); |
| 40 | Error dumpSectionHeaders(); |
| 41 | Error dumpFpoStream(); |
| 42 | |
Zachary Turner | d3c7b8e | 2016-08-01 21:19:45 +0000 | [diff] [blame^] | 43 | void dumpBitVector(StringRef Name, const BitVector &V); |
| 44 | |
Zachary Turner | a30bd1a | 2016-06-30 17:42:48 +0000 | [diff] [blame] | 45 | void flush(); |
| 46 | |
Zachary Turner | d311739 | 2016-06-03 19:28:33 +0000 | [diff] [blame] | 47 | PDBFile &File; |
| 48 | ScopedPrinter P; |
| 49 | codeview::CVTypeDumper TD; |
| 50 | }; |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | #endif |