10 #ifndef LLVM_DEBUGINFO_PDB_RAW_PDBTPISTREAMBUILDER_H
11 #define LLVM_DEBUGINFO_PDB_RAW_PDBTPISTREAMBUILDER_H
31 class ReadableStreamRef;
44 struct TpiStreamHeader;
64 uint32_t calculateHashBufferSize()
const;
71 std::vector<codeview::CVType> TypeRecords;
74 std::unique_ptr<msf::ByteStream> HashValueStream;
static size_t length(const codeview::CVType &Item)
ArrayRef< uint8_t > data() const
static ArrayRef< uint8_t > bytes(const codeview::CVType &Item)
This file defines the MallocAllocator and BumpPtrAllocator interfaces.
uint32_t calculateSerializedLength() const
void addTypeRecord(const codeview::CVType &Record)
const uint16_t kInvalidStreamIndex
Allocate memory in an ever growing pool, as if by bump-pointer.
TpiStreamBuilder & operator=(const TpiStreamBuilder &)=delete
void setVersionHeader(PdbRaw_TpiVer Version)
Error finalizeMsfLayout()
TpiStreamBuilder(msf::MSFBuilder &Msf, uint32_t StreamIdx)
Error commit(const msf::MSFLayout &Layout, const msf::WritableStream &Buffer)
Lightweight error class with error context and mandatory checking.