mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-13 07:50:41 +00:00
be73fbca1c
This writes the full sequence of type records described in Yaml to the TPI stream of the PDB file. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D24316 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281063 91177308-0d34-0410-b5e6-96231b3b80d8
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
//===- 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 |