LLVM  6.0.0svn
Classes | Public Member Functions | Static Public Member Functions | List of all members
llvm::pdb::DbiStreamBuilder Class Reference

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

Public Member Functions

 DbiStreamBuilder (msf::MSFBuilder &Msf)
 
 ~DbiStreamBuilder ()
 
 DbiStreamBuilder (const DbiStreamBuilder &)=delete
 
DbiStreamBuilderoperator= (const DbiStreamBuilder &)=delete
 
void setVersionHeader (PdbRaw_DbiVer V)
 
void setAge (uint32_t A)
 
void setBuildNumber (uint16_t B)
 
void setPdbDllVersion (uint16_t V)
 
void setPdbDllRbld (uint16_t R)
 
void setFlags (uint16_t F)
 
void setMachineType (PDB_Machine M)
 
void setSectionMap (ArrayRef< SecMapEntry > SecMap)
 
Error addDbgStream (pdb::DbgHeaderType Type, ArrayRef< uint8_t > Data)
 
uint32_t addECName (StringRef Name)
 
uint32_t calculateSerializedLength () const
 
void setGlobalsStreamIndex (uint32_t Index)
 
void setPublicsStreamIndex (uint32_t Index)
 
void setSymbolRecordStreamIndex (uint32_t Index)
 
Expected< DbiModuleDescriptorBuilder & > addModuleInfo (StringRef ModuleName)
 
Error addModuleSourceFile (DbiModuleDescriptorBuilder &Module, StringRef File)
 
Expected< uint32_tgetSourceFileNameIndex (StringRef FileName)
 
Error finalizeMsfLayout ()
 
Error commit (const msf::MSFLayout &Layout, WritableBinaryStreamRef MsfBuffer)
 
void addSectionContrib (const SectionContrib &SC)
 

Static Public Member Functions

static std::vector< SecMapEntrycreateSectionMap (ArrayRef< llvm::object::coff_section > SecHdrs)
 

Detailed Description

Definition at line 38 of file DbiStreamBuilder.h.

Constructor & Destructor Documentation

◆ DbiStreamBuilder() [1/2]

DbiStreamBuilder::DbiStreamBuilder ( msf::MSFBuilder Msf)

Definition at line 27 of file DbiStreamBuilder.cpp.

References llvm::pdb::Max, and llvm::pdb::x86.

◆ ~DbiStreamBuilder()

DbiStreamBuilder::~DbiStreamBuilder ( )

Definition at line 32 of file DbiStreamBuilder.cpp.

◆ DbiStreamBuilder() [2/2]

llvm::pdb::DbiStreamBuilder::DbiStreamBuilder ( const DbiStreamBuilder )
delete

Member Function Documentation

◆ addDbgStream()

Error DbiStreamBuilder::addDbgStream ( pdb::DbgHeaderType  Type,
ArrayRef< uint8_t >  Data 
)

◆ addECName()

uint32_t DbiStreamBuilder::addECName ( StringRef  Name)

Definition at line 78 of file DbiStreamBuilder.cpp.

References llvm::pdb::PDBStringTableBuilder::insert().

◆ addModuleInfo()

Expected< DbiModuleDescriptorBuilder & > DbiStreamBuilder::addModuleInfo ( StringRef  ModuleName)

Definition at line 91 of file DbiStreamBuilder.cpp.

◆ addModuleSourceFile()

Error DbiStreamBuilder::addModuleSourceFile ( DbiModuleDescriptorBuilder Module,
StringRef  File 
)

◆ addSectionContrib()

void llvm::pdb::DbiStreamBuilder::addSectionContrib ( const SectionContrib SC)
inline

◆ calculateSerializedLength()

uint32_t DbiStreamBuilder::calculateSerializedLength ( ) const

◆ commit()

Error DbiStreamBuilder::commit ( const msf::MSFLayout Layout,
WritableBinaryStreamRef  MsfBuffer 
)

◆ createSectionMap()

std::vector< SecMapEntry > DbiStreamBuilder::createSectionMap ( ArrayRef< llvm::object::coff_section SecHdrs)
static

◆ finalizeMsfLayout()

Error DbiStreamBuilder::finalizeMsfLayout ( )

◆ getSourceFileNameIndex()

Expected< uint32_t > DbiStreamBuilder::getSourceFileNameIndex ( StringRef  FileName)

Definition at line 106 of file DbiStreamBuilder.cpp.

References llvm::pdb::DbiStreamHeader::Age, llvm::alignTo(), llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold >::Allocate(), llvm::pdb::DbiStreamHeader::BuildNumber, llvm::BinaryStreamWriter::bytesRemaining(), llvm::pdb::PDBStringTableBuilder::calculateSerializedSize(), llvm::pdb::Data, llvm::BinaryStreamRefBase< RefType, StreamType >::drop_front(), llvm::codeview::EC, llvm::pdb::DbiStreamHeader::ECSubstreamSize, llvm::StringMap< ValueTy, AllocatorTy >::end(), F(), llvm::pdb::DbiStreamHeader::FileInfoSize, llvm::StringMap< ValueTy, AllocatorTy >::find(), llvm::pdb::DbiStreamHeader::Flags, llvm::MutableBinaryByteStream::getLength(), llvm::BinaryStreamWriter::getOffset(), llvm::pdb::DbiStreamHeader::GlobalSymbolStreamIndex, H, I, llvm::pdb::invalid_format, llvm::BinaryStreamRefBase< RefType, StreamType >::keep_front(), llvm::pdb::kInvalidStreamIndex, llvm::support::little, llvm::pdb::DbiStreamHeader::MachineType, llvm::pdb::DbiStreamHeader::MFCTypeServerIndex, MI, llvm::pdb::DbiStreamHeader::ModiSubstreamSize, llvm::pdb::no_entry, llvm::pdb::DbiStreamHeader::OptionalDbgHdrSize, llvm::BinaryStreamWriter::padToAlignment(), llvm::pdb::DbiStreamHeader::PdbDllRbld, llvm::pdb::DbiStreamHeader::PdbDllVersion, llvm::pdb::DbiStreamHeader::PublicSymbolStreamIndex, llvm::pdb::DbiStreamHeader::SecContrSubstreamSize, llvm::pdb::DbiStreamHeader::SectionMapSize, llvm::StringMapImpl::size(), llvm::SmallVectorTemplateCommon< T, typename >::size(), llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Size, llvm::Error::success(), llvm::pdb::DbiStreamHeader::SymRecordStreamIndex, llvm::pdb::DbiStreamHeader::TypeServerSize, llvm::pdb::DbiStreamHeader::VersionHeader, llvm::pdb::DbiStreamHeader::VersionSignature, llvm::BinaryStreamWriter::writeCString(), and llvm::BinaryStreamWriter::writeInteger().

◆ operator=()

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

◆ setAge()

void DbiStreamBuilder::setAge ( uint32_t  A)

Definition at line 36 of file DbiStreamBuilder.cpp.

◆ setBuildNumber()

void DbiStreamBuilder::setBuildNumber ( uint16_t  B)

Definition at line 38 of file DbiStreamBuilder.cpp.

References B.

◆ setFlags()

void DbiStreamBuilder::setFlags ( uint16_t  F)

Definition at line 44 of file DbiStreamBuilder.cpp.

References F().

◆ setGlobalsStreamIndex()

void DbiStreamBuilder::setGlobalsStreamIndex ( uint32_t  Index)

Definition at line 52 of file DbiStreamBuilder.cpp.

◆ setMachineType()

void DbiStreamBuilder::setMachineType ( PDB_Machine  M)

Definition at line 46 of file DbiStreamBuilder.cpp.

◆ setPdbDllRbld()

void DbiStreamBuilder::setPdbDllRbld ( uint16_t  R)

Definition at line 42 of file DbiStreamBuilder.cpp.

◆ setPdbDllVersion()

void DbiStreamBuilder::setPdbDllVersion ( uint16_t  V)

Definition at line 40 of file DbiStreamBuilder.cpp.

◆ setPublicsStreamIndex()

void DbiStreamBuilder::setPublicsStreamIndex ( uint32_t  Index)

Definition at line 60 of file DbiStreamBuilder.cpp.

◆ setSectionMap()

void DbiStreamBuilder::setSectionMap ( ArrayRef< SecMapEntry SecMap)

Definition at line 48 of file DbiStreamBuilder.cpp.

◆ setSymbolRecordStreamIndex()

void DbiStreamBuilder::setSymbolRecordStreamIndex ( uint32_t  Index)

Definition at line 56 of file DbiStreamBuilder.cpp.

◆ setVersionHeader()

void DbiStreamBuilder::setVersionHeader ( PdbRaw_DbiVer  V)

Definition at line 34 of file DbiStreamBuilder.cpp.


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