diff options
Diffstat (limited to 'llvm/tools/llvm-pdbdump/YamlSerializationContext.h')
| -rw-r--r-- | llvm/tools/llvm-pdbdump/YamlSerializationContext.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/llvm/tools/llvm-pdbdump/YamlSerializationContext.h b/llvm/tools/llvm-pdbdump/YamlSerializationContext.h new file mode 100644 index 00000000000..e7fa168ad65 --- /dev/null +++ b/llvm/tools/llvm-pdbdump/YamlSerializationContext.h @@ -0,0 +1,36 @@ +//===- YamlSerializationContext.h ----------------------------- *- C++ --*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_TOOLS_LLVMPDBDUMP_YAMLSERIALIZATIONCONTEXT_H +#define LLVM_TOOLS_LLVMPDBDUMP_YAMLSERIALIZATIONCONTEXT_H + +#include "CodeViewYaml.h" +#include "PdbYaml.h" +#include "llvm/DebugInfo/CodeView/FieldListRecordBuilder.h" +#include "llvm/DebugInfo/CodeView/MemoryTypeTableBuilder.h" + +namespace llvm { +namespace yaml { +class IO; +} + +namespace pdb { +namespace yaml { +struct SerializationContext { + explicit SerializationContext(llvm::yaml::IO &IO, BumpPtrAllocator &Allocator) + : Dumper(IO, *this), TypeTableBuilder(Allocator) {} + codeview::yaml::YamlTypeDumperCallbacks Dumper; + codeview::MemoryTypeTableBuilder TypeTableBuilder; + codeview::FieldListRecordBuilder FieldListBuilder; +}; +} +} +} + +#endif
\ No newline at end of file |

