LLVM
8.0.1
|
#include "llvm/DebugInfo/PDB/Native/TpiStreamBuilder.h"
Public Member Functions | |
TpiStreamBuilder (msf::MSFBuilder &Msf, uint32_t StreamIdx) | |
~TpiStreamBuilder () | |
TpiStreamBuilder (const TpiStreamBuilder &)=delete | |
TpiStreamBuilder & | operator= (const TpiStreamBuilder &)=delete |
void | setVersionHeader (PdbRaw_TpiVer Version) |
void | addTypeRecord (ArrayRef< uint8_t > Type, Optional< uint32_t > Hash) |
Error | finalizeMsfLayout () |
uint32_t | getRecordCount () const |
Error | commit (const msf::MSFLayout &Layout, WritableBinaryStreamRef Buffer) |
uint32_t | calculateSerializedLength () |
Definition at line 48 of file TpiStreamBuilder.h.
|
explicit |
Definition at line 35 of file TpiStreamBuilder.cpp.
References ~TpiStreamBuilder().
|
default |
Referenced by TpiStreamBuilder().
|
delete |
Definition at line 45 of file TpiStreamBuilder.cpp.
References llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold >::Allocate(), llvm::codeview::TypeIndex::FirstNonSimpleIndex, H, llvm::pdb::TpiStreamHeader::HashAdjBuffer, llvm::pdb::TpiStreamHeader::HashAuxStreamIndex, llvm::pdb::TpiStreamHeader::HashKeySize, llvm::pdb::TpiStreamHeader::HashStreamIndex, llvm::pdb::TpiStreamHeader::HashValueBuffer, llvm::pdb::TpiStreamHeader::HeaderSize, llvm::pdb::TpiStreamHeader::IndexOffsetBuffer, llvm::pdb::kInvalidStreamIndex, llvm::pdb::TpiStreamHeader::EmbeddedBuf::Length, llvm::pdb::MinTpiHashBuckets, llvm::pdb::TpiStreamHeader::NumHashBuckets, llvm::pdb::TpiStreamHeader::EmbeddedBuf::Off, llvm::ArrayRef< T >::size(), llvm::Error::success(), llvm::pdb::TpiStreamHeader::TypeIndexBegin, llvm::pdb::TpiStreamHeader::TypeIndexEnd, llvm::pdb::TpiStreamHeader::TypeRecordBytes, and llvm::pdb::TpiStreamHeader::Version.
uint32_t TpiStreamBuilder::calculateSerializedLength | ( | ) |
Definition at line 100 of file TpiStreamBuilder.cpp.
References assert().
Referenced by finalizeMsfLayout().
Error TpiStreamBuilder::commit | ( | const msf::MSFLayout & | Layout, |
WritableBinaryStreamRef | Buffer | ||
) |
Definition at line 144 of file TpiStreamBuilder.cpp.
References llvm::pdb::kInvalidStreamIndex, llvm::Error::success(), llvm::BinaryStreamWriter::writeBytes(), llvm::BinaryStreamWriter::writeObject(), and llvm::BinaryStreamWriter::writeStreamRef().
Error TpiStreamBuilder::finalizeMsfLayout | ( | ) |
Definition at line 114 of file TpiStreamBuilder.cpp.
References llvm::msf::MSFBuilder::addStream(), llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold >::Allocate(), calculateSerializedLength(), H, I, llvm::support::little, llvm::pdb::MinTpiHashBuckets, llvm::msf::MSFBuilder::setStreamSize(), and llvm::Error::success().
|
inline |
Definition at line 61 of file TpiStreamBuilder.h.
References Allocator, finalize, llvm::pdb::kInvalidStreamIndex, and llvm::pdb::PdbTpiV80.
|
delete |
void TpiStreamBuilder::setVersionHeader | ( | PdbRaw_TpiVer | Version | ) |
Definition at line 41 of file TpiStreamBuilder.cpp.
References llvm::IndexedInstrProf::Version.