LLVM 20.0.0git
Public Member Functions | List of all members
llvm::pdb::TpiStreamBuilder Class Reference

#include "llvm/DebugInfo/PDB/Native/TpiStreamBuilder.h"

Public Member Functions

 TpiStreamBuilder (msf::MSFBuilder &Msf, uint32_t StreamIdx)
 
 ~TpiStreamBuilder ()
 
 TpiStreamBuilder (const TpiStreamBuilder &)=delete
 
TpiStreamBuilderoperator= (const TpiStreamBuilder &)=delete
 
void setVersionHeader (PdbRaw_TpiVer Version)
 
void addTypeRecord (ArrayRef< uint8_t > Type, std::optional< uint32_t > Hash)
 
void addTypeRecords (ArrayRef< uint8_t > Types, ArrayRef< uint16_t > Sizes, ArrayRef< uint32_t > Hashes)
 
Error finalizeMsfLayout ()
 
uint32_t getRecordCount () const
 
Error commit (const msf::MSFLayout &Layout, WritableBinaryStreamRef Buffer)
 
uint32_t calculateSerializedLength ()
 

Detailed Description

Definition at line 39 of file TpiStreamBuilder.h.

Constructor & Destructor Documentation

◆ TpiStreamBuilder() [1/2]

TpiStreamBuilder::TpiStreamBuilder ( msf::MSFBuilder Msf,
uint32_t  StreamIdx 
)
explicit

Definition at line 32 of file TpiStreamBuilder.cpp.

References Allocator.

◆ ~TpiStreamBuilder()

TpiStreamBuilder::~TpiStreamBuilder ( )
default

◆ TpiStreamBuilder() [2/2]

llvm::pdb::TpiStreamBuilder::TpiStreamBuilder ( const TpiStreamBuilder )
delete

Member Function Documentation

◆ addTypeRecord()

void TpiStreamBuilder::addTypeRecord ( ArrayRef< uint8_t >  Type,
std::optional< uint32_t Hash 
)

Definition at line 58 of file TpiStreamBuilder.cpp.

References assert(), and llvm::codeview::MaxRecordLength.

◆ addTypeRecords()

void TpiStreamBuilder::addTypeRecords ( ArrayRef< uint8_t >  Types,
ArrayRef< uint16_t Sizes,
ArrayRef< uint32_t Hashes 
)

◆ calculateSerializedLength()

uint32_t TpiStreamBuilder::calculateSerializedLength ( )

Definition at line 129 of file TpiStreamBuilder.cpp.

Referenced by finalizeMsfLayout().

◆ commit()

Error TpiStreamBuilder::commit ( const msf::MSFLayout Layout,
WritableBinaryStreamRef  Buffer 
)

◆ finalizeMsfLayout()

Error TpiStreamBuilder::finalizeMsfLayout ( )

◆ getRecordCount()

uint32_t llvm::pdb::TpiStreamBuilder::getRecordCount ( ) const
inline

Definition at line 54 of file TpiStreamBuilder.h.

◆ operator=()

TpiStreamBuilder & llvm::pdb::TpiStreamBuilder::operator= ( const TpiStreamBuilder )
delete

◆ setVersionHeader()

void TpiStreamBuilder::setVersionHeader ( PdbRaw_TpiVer  Version)

Definition at line 38 of file TpiStreamBuilder.cpp.

References llvm::Version.


The documentation for this class was generated from the following files: