LLVM  14.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, 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 47 of file TpiStreamBuilder.h.

Constructor & Destructor Documentation

◆ TpiStreamBuilder() [1/2]

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

Definition at line 35 of file TpiStreamBuilder.cpp.

◆ ~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,
Optional< uint32_t Hash 
)

◆ addTypeRecords()

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

◆ calculateSerializedLength()

uint32_t TpiStreamBuilder::calculateSerializedLength ( )

Definition at line 132 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 62 of file TpiStreamBuilder.h.

◆ operator=()

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

◆ setVersionHeader()

void TpiStreamBuilder::setVersionHeader ( PdbRaw_TpiVer  Version)

Definition at line 41 of file TpiStreamBuilder.cpp.

References llvm::IndexedInstrProf::Version.


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