LLVM 20.0.0git
Classes | 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 setBuildNumber (uint8_t Major, uint8_t Minor)
 
void setPdbDllVersion (uint16_t V)
 
void setPdbDllRbld (uint16_t R)
 
void setFlags (uint16_t F)
 
void setMachineType (PDB_Machine M)
 
void setMachineType (COFF::MachineTypes M)
 
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)
 
void addNewFpoData (const codeview::FrameData &FD)
 
void addOldFpoData (const object::FpoData &Fpo)
 
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)
 
void createSectionMap (ArrayRef< llvm::object::coff_section > SecHdrs)
 

Detailed Description

Definition at line 40 of file DbiStreamBuilder.h.

Constructor & Destructor Documentation

◆ DbiStreamBuilder() [1/2]

DbiStreamBuilder::DbiStreamBuilder ( msf::MSFBuilder Msf)

Definition at line 28 of file DbiStreamBuilder.cpp.

References Allocator.

◆ ~DbiStreamBuilder()

DbiStreamBuilder::~DbiStreamBuilder ( )
default

◆ 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 98 of file DbiStreamBuilder.cpp.

References llvm::pdb::PDBStringTableBuilder::insert(), and Name.

◆ addModuleInfo()

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

Definition at line 111 of file DbiStreamBuilder.cpp.

◆ addModuleSourceFile()

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

◆ addNewFpoData()

void DbiStreamBuilder::addNewFpoData ( const codeview::FrameData FD)

Definition at line 74 of file DbiStreamBuilder.cpp.

◆ addOldFpoData()

void DbiStreamBuilder::addOldFpoData ( const object::FpoData Fpo)

Definition at line 81 of file DbiStreamBuilder.cpp.

◆ addSectionContrib()

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

Definition at line 79 of file DbiStreamBuilder.h.

◆ calculateSerializedLength()

uint32_t DbiStreamBuilder::calculateSerializedLength ( ) const

◆ commit()

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

◆ createSectionMap()

void DbiStreamBuilder::createSectionMap ( ArrayRef< llvm::object::coff_section SecHdrs)

◆ finalizeMsfLayout()

Error DbiStreamBuilder::finalizeMsfLayout ( )

◆ getSourceFileNameIndex()

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

◆ operator=()

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

◆ setAge()

void DbiStreamBuilder::setAge ( uint32_t  A)

Definition at line 37 of file DbiStreamBuilder.cpp.

References A.

◆ setBuildNumber() [1/2]

void DbiStreamBuilder::setBuildNumber ( uint16_t  B)

Definition at line 39 of file DbiStreamBuilder.cpp.

References B.

◆ setBuildNumber() [2/2]

void DbiStreamBuilder::setBuildNumber ( uint8_t  Major,
uint8_t  Minor 
)

◆ setFlags()

void DbiStreamBuilder::setFlags ( uint16_t  F)

Definition at line 53 of file DbiStreamBuilder.cpp.

References F.

◆ setGlobalsStreamIndex()

void DbiStreamBuilder::setGlobalsStreamIndex ( uint32_t  Index)

Definition at line 62 of file DbiStreamBuilder.cpp.

◆ setMachineType() [1/2]

void DbiStreamBuilder::setMachineType ( COFF::MachineTypes  M)

Definition at line 57 of file DbiStreamBuilder.cpp.

◆ setMachineType() [2/2]

void DbiStreamBuilder::setMachineType ( PDB_Machine  M)

Definition at line 55 of file DbiStreamBuilder.cpp.

◆ setPdbDllRbld()

void DbiStreamBuilder::setPdbDllRbld ( uint16_t  R)

Definition at line 51 of file DbiStreamBuilder.cpp.

◆ setPdbDllVersion()

void DbiStreamBuilder::setPdbDllVersion ( uint16_t  V)

Definition at line 49 of file DbiStreamBuilder.cpp.

◆ setPublicsStreamIndex()

void DbiStreamBuilder::setPublicsStreamIndex ( uint32_t  Index)

Definition at line 70 of file DbiStreamBuilder.cpp.

◆ setSymbolRecordStreamIndex()

void DbiStreamBuilder::setSymbolRecordStreamIndex ( uint32_t  Index)

Definition at line 66 of file DbiStreamBuilder.cpp.

◆ setVersionHeader()

void DbiStreamBuilder::setVersionHeader ( PdbRaw_DbiVer  V)

Definition at line 35 of file DbiStreamBuilder.cpp.


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