Zachary Turner | 7120a47 | 2016-06-06 20:37:05 +0000 | [diff] [blame] | 1 | //===- YAMLOutputStyle.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_YAMLOUTPUTSTYLE_H |
| 11 | #define LLVM_TOOLS_LLVMPDBDUMP_YAMLOUTPUTSTYLE_H |
| 12 | |
| 13 | #include "OutputStyle.h" |
| 14 | #include "PdbYaml.h" |
| 15 | |
Zachary Turner | a9054dd | 2017-01-11 00:35:43 +0000 | [diff] [blame] | 16 | #include "llvm/DebugInfo/CodeView/CVTypeDumper.h" |
Zachary Turner | 7120a47 | 2016-06-06 20:37:05 +0000 | [diff] [blame] | 17 | #include "llvm/Support/ScopedPrinter.h" |
| 18 | #include "llvm/Support/YAMLTraits.h" |
| 19 | |
| 20 | namespace llvm { |
| 21 | namespace pdb { |
| 22 | class YAMLOutputStyle : public OutputStyle { |
| 23 | public: |
| 24 | YAMLOutputStyle(PDBFile &File); |
| 25 | |
Zachary Turner | a30bd1a | 2016-06-30 17:42:48 +0000 | [diff] [blame] | 26 | Error dump() override; |
Zachary Turner | 7120a47 | 2016-06-06 20:37:05 +0000 | [diff] [blame] | 27 | |
| 28 | private: |
Zachary Turner | 760ad4d | 2017-01-20 22:42:09 +0000 | [diff] [blame] | 29 | Error dumpStringTable(); |
Zachary Turner | a30bd1a | 2016-06-30 17:42:48 +0000 | [diff] [blame] | 30 | Error dumpFileHeaders(); |
| 31 | Error dumpStreamMetadata(); |
| 32 | Error dumpStreamDirectory(); |
Zachary Turner | 8848a7a | 2016-07-06 18:05:57 +0000 | [diff] [blame] | 33 | Error dumpPDBStream(); |
Zachary Turner | dbeaea7 | 2016-07-11 21:45:26 +0000 | [diff] [blame] | 34 | Error dumpDbiStream(); |
Zachary Turner | ac5763e | 2016-08-18 16:49:29 +0000 | [diff] [blame] | 35 | Error dumpTpiStream(); |
Zachary Turner | de9ba15 | 2016-09-15 18:22:31 +0000 | [diff] [blame] | 36 | Error dumpIpiStream(); |
Zachary Turner | a30bd1a | 2016-06-30 17:42:48 +0000 | [diff] [blame] | 37 | |
| 38 | void flush(); |
| 39 | |
Zachary Turner | 7120a47 | 2016-06-06 20:37:05 +0000 | [diff] [blame] | 40 | PDBFile &File; |
| 41 | llvm::yaml::Output Out; |
| 42 | |
| 43 | yaml::PdbObject Obj; |
| 44 | }; |
| 45 | } // namespace pdb |
| 46 | } // namespace llvm |
| 47 | |
| 48 | #endif // LLVM_TOOLS_LLVMPDBDUMP_YAMLOUTPUTSTYLE_H |