9#ifndef LLVM_DEBUGINFO_PDB_NATIVE_TPISTREAMBUILDER_H
10#define LLVM_DEBUGINFO_PDB_NATIVE_TPISTREAMBUILDER_H
66 uint32_t calculateHashBufferSize()
const;
67 uint32_t calculateIndexOffsetSize()
const;
74 size_t TypeRecordBytes = 0;
77 std::vector<ArrayRef<uint8_t>> TypeRecBuffers;
78 std::vector<uint32_t> TypeHashes;
79 std::vector<codeview::TypeIndexOffset> TypeIndexOffsets;
81 std::unique_ptr<BinaryByteStream> HashValueStream;
This file defines the BumpPtrAllocator interface.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
An implementation of BinaryStream which holds its entire data set in a single contiguous buffer.
Lightweight error class with error context and mandatory checking.
ArrayRef< uint8_t > data() const
LLVM_ABI void addTypeRecord(ArrayRef< uint8_t > Type, uint32_t Hash)
uint32_t getRecordCount() const
LLVM_ABI Error finalizeMsfLayout()
TpiStreamBuilder & operator=(const TpiStreamBuilder &)=delete
LLVM_ABI Error commit(const msf::MSFLayout &Layout, WritableBinaryStreamRef Buffer)
LLVM_ABI void addTypeRecords(ArrayRef< uint8_t > Types, ArrayRef< uint16_t > Sizes, ArrayRef< uint32_t > Hashes)
LLVM_ABI TpiStreamBuilder(msf::MSFBuilder &Msf, uint32_t StreamIdx)
LLVM_ABI uint32_t calculateSerializedLength()
TpiStreamBuilder(const TpiStreamBuilder &)=delete
LLVM_ABI ~TpiStreamBuilder()
LLVM_ABI void setVersionHeader(PdbRaw_TpiVer Version)
CVRecord< TypeLeafKind > CVType
const uint16_t kInvalidStreamIndex
This is an optimization pass for GlobalISel generic memory operations.
FunctionAddr VTableAddr uintptr_t uintptr_t Version
BumpPtrAllocatorImpl<> BumpPtrAllocator
The standard BumpPtrAllocator which just uses the default template parameters.
static ArrayRef< uint8_t > bytes(const codeview::CVType &Item)
static size_t length(const codeview::CVType &Item)