1 //===- YamlSerializationContext.h ----------------------------- *- C++ --*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_TOOLS_LLVMPDBDUMP_YAMLSERIALIZATIONCONTEXT_H
11 #define LLVM_TOOLS_LLVMPDBDUMP_YAMLSERIALIZATIONCONTEXT_H
14 #include "YamlTypeDumper.h"
15 #include "llvm/Support/Allocator.h"
27 struct SerializationContext {
28 explicit SerializationContext(llvm::yaml::IO &IO, BumpPtrAllocator &Allocator)
29 : Dumper(IO, *this), Allocator(Allocator) {}
31 codeview::yaml::YamlTypeDumperCallbacks Dumper;
32 BumpPtrAllocator &Allocator;
33 codeview::TypeSerializer *ActiveSerializer = nullptr;