LLVM  8.0.1
Public Member Functions | Friends | List of all members
llvm::pdb::DbiModuleDescriptorBuilder Class Reference

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

Public Member Functions

 DbiModuleDescriptorBuilder (StringRef ModuleName, uint32_t ModIndex, msf::MSFBuilder &Msf)
 
 ~DbiModuleDescriptorBuilder ()
 
 DbiModuleDescriptorBuilder (const DbiModuleDescriptorBuilder &)=delete
 
DbiModuleDescriptorBuilderoperator= (const DbiModuleDescriptorBuilder &)=delete
 
void setPdbFilePathNI (uint32_t NI)
 
void setObjFileName (StringRef Name)
 
void setFirstSectionContrib (const SectionContrib &SC)
 
void addSymbol (codeview::CVSymbol Symbol)
 
void addSymbolsInBulk (ArrayRef< uint8_t > BulkSymbols)
 
void addDebugSubsection (std::shared_ptr< codeview::DebugSubsection > Subsection)
 
void addDebugSubsection (const codeview::DebugSubsectionRecord &SubsectionContents)
 
uint16_t getStreamIndex () const
 
StringRef getModuleName () const
 
StringRef getObjFileName () const
 
unsigned getModuleIndex () const
 
ArrayRef< std::string > source_files () const
 
uint32_t calculateSerializedLength () const
 
uint32_t getNextSymbolOffset () const
 Return the offset within the module symbol stream of the next symbol record passed to addSymbol. More...
 
void finalize ()
 
Error finalizeMsfLayout ()
 
Error commit (BinaryStreamWriter &ModiWriter, const msf::MSFLayout &MsfLayout, WritableBinaryStreamRef MsfBuffer)
 

Friends

class DbiStreamBuilder
 

Detailed Description

Definition at line 38 of file DbiModuleDescriptorBuilder.h.

Constructor & Destructor Documentation

◆ DbiModuleDescriptorBuilder() [1/2]

DbiModuleDescriptorBuilder::DbiModuleDescriptorBuilder ( StringRef  ModuleName,
uint32_t  ModIndex,
msf::MSFBuilder Msf 
)

◆ ~DbiModuleDescriptorBuilder()

DbiModuleDescriptorBuilder::~DbiModuleDescriptorBuilder ( )

Definition at line 48 of file DbiModuleDescriptorBuilder.cpp.

◆ DbiModuleDescriptorBuilder() [2/2]

llvm::pdb::DbiModuleDescriptorBuilder::DbiModuleDescriptorBuilder ( const DbiModuleDescriptorBuilder )
delete

Member Function Documentation

◆ addDebugSubsection() [1/2]

void llvm::pdb::DbiModuleDescriptorBuilder::addDebugSubsection ( std::shared_ptr< codeview::DebugSubsection Subsection)

Referenced by commit().

◆ addDebugSubsection() [2/2]

void DbiModuleDescriptorBuilder::addDebugSubsection ( const codeview::DebugSubsectionRecord SubsectionContents)

Definition at line 186 of file DbiModuleDescriptorBuilder.cpp.

◆ addSymbol()

void DbiModuleDescriptorBuilder::addSymbol ( codeview::CVSymbol  Symbol)

◆ addSymbolsInBulk()

void DbiModuleDescriptorBuilder::addSymbolsInBulk ( ArrayRef< uint8_t >  BulkSymbols)

◆ calculateSerializedLength()

uint32_t DbiModuleDescriptorBuilder::calculateSerializedLength ( ) const

Definition at line 99 of file DbiModuleDescriptorBuilder.cpp.

References llvm::alignTo(), and llvm::RISCVFenceField::O.

◆ commit()

Error DbiModuleDescriptorBuilder::commit ( BinaryStreamWriter ModiWriter,
const msf::MSFLayout MsfLayout,
WritableBinaryStreamRef  MsfBuffer 
)

◆ finalize()

void DbiModuleDescriptorBuilder::finalize ( )

◆ finalizeMsfLayout()

Error DbiModuleDescriptorBuilder::finalizeMsfLayout ( )

◆ getModuleIndex()

unsigned llvm::pdb::DbiModuleDescriptorBuilder::getModuleIndex ( ) const
inline

Definition at line 66 of file DbiModuleDescriptorBuilder.h.

◆ getModuleName()

StringRef llvm::pdb::DbiModuleDescriptorBuilder::getModuleName ( ) const
inline

Definition at line 63 of file DbiModuleDescriptorBuilder.h.

◆ getNextSymbolOffset()

uint32_t llvm::pdb::DbiModuleDescriptorBuilder::getNextSymbolOffset ( ) const
inline

Return the offset within the module symbol stream of the next symbol record passed to addSymbol.

Add four to account for the signature.

Definition at line 76 of file DbiModuleDescriptorBuilder.h.

References finalize, llvm::pdb::SourceFiles, and llvm::codeview::Symbols.

◆ getObjFileName()

StringRef llvm::pdb::DbiModuleDescriptorBuilder::getObjFileName ( ) const
inline

Definition at line 64 of file DbiModuleDescriptorBuilder.h.

◆ getStreamIndex()

uint16_t DbiModuleDescriptorBuilder::getStreamIndex ( ) const

◆ operator=()

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

◆ setFirstSectionContrib()

void DbiModuleDescriptorBuilder::setFirstSectionContrib ( const SectionContrib SC)

◆ setObjFileName()

void DbiModuleDescriptorBuilder::setObjFileName ( StringRef  Name)

Definition at line 54 of file DbiModuleDescriptorBuilder.cpp.

References Name.

◆ setPdbFilePathNI()

void DbiModuleDescriptorBuilder::setPdbFilePathNI ( uint32_t  NI)

Definition at line 58 of file DbiModuleDescriptorBuilder.cpp.

◆ source_files()

ArrayRef<std::string> llvm::pdb::DbiModuleDescriptorBuilder::source_files ( ) const
inline

Definition at line 68 of file DbiModuleDescriptorBuilder.h.

References llvm::makeArrayRef(), and llvm::pdb::SourceFiles.

Friends And Related Function Documentation

◆ DbiStreamBuilder

friend class DbiStreamBuilder
friend

Definition at line 39 of file DbiModuleDescriptorBuilder.h.


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