]> granicus.if.org Git - llvm/commit
Add CodeViewRecordIO for reading and writing.
authorZachary Turner <zturner@google.com>
Wed, 2 Nov 2016 17:05:19 +0000 (17:05 +0000)
committerZachary Turner <zturner@google.com>
Wed, 2 Nov 2016 17:05:19 +0000 (17:05 +0000)
commitd7730478c08debbc0e2622f487645304dfe34957
tree969cb5e5620410e1dd964b067a1fcd30523b1c8c
parent08f7b241492e37a3199eb8e71a8c12ee502f05c9
Add CodeViewRecordIO for reading and writing.

Using a pattern similar to that of YamlIO, this allows
us to have a single codepath for translating codeview
records to and from serialized byte streams.  The
current patch only hooks this up to the reading of
CodeView type records.  A subsequent patch will hook
it up for writing of CodeView type records, and then a
third patch will hook up the reading and writing of
CodeView symbols.

Differential Revision: https://reviews.llvm.org/D26040

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285836 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h [new file with mode: 0644]
include/llvm/DebugInfo/CodeView/TypeDeserializer.h
include/llvm/DebugInfo/CodeView/TypeIndex.h
include/llvm/DebugInfo/CodeView/TypeRecord.h
include/llvm/DebugInfo/CodeView/TypeRecordMapping.h [new file with mode: 0644]
include/llvm/DebugInfo/MSF/StreamWriter.h
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
lib/DebugInfo/CodeView/CMakeLists.txt
lib/DebugInfo/CodeView/CVTypeVisitor.cpp
lib/DebugInfo/CodeView/CodeViewRecordIO.cpp [new file with mode: 0644]
lib/DebugInfo/CodeView/TypeDumper.cpp
lib/DebugInfo/CodeView/TypeRecord.cpp
lib/DebugInfo/CodeView/TypeRecordMapping.cpp [new file with mode: 0644]
lib/DebugInfo/CodeView/TypeStreamMerger.cpp
lib/DebugInfo/CodeView/TypeTableBuilder.cpp
lib/DebugInfo/MSF/StreamWriter.cpp
test/DebugInfo/PDB/pdbdump-yaml-types.test
tools/llvm-pdbdump/YamlTypeDumper.cpp