LLVM  7.0.0svn
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 addSymbol (codeview::CVSymbol Symbol)
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)


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 

Definition at line 41 of file DbiModuleDescriptorBuilder.cpp.

References llvm::pdb::ModuleInfoHeader::Mod.

◆ ~DbiModuleDescriptorBuilder()

DbiModuleDescriptorBuilder::~DbiModuleDescriptorBuilder ( )

Definition at line 49 of file DbiModuleDescriptorBuilder.cpp.

◆ DbiModuleDescriptorBuilder() [2/2]

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

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 175 of file DbiModuleDescriptorBuilder.cpp.

◆ addSymbol()

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

◆ calculateSerializedLength()

uint32_t DbiModuleDescriptorBuilder::calculateSerializedLength ( ) const

Definition at line 85 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

Definition at line 64 of file DbiModuleDescriptorBuilder.h.

◆ getModuleName()

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

Definition at line 61 of file DbiModuleDescriptorBuilder.h.

◆ getNextSymbolOffset()

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

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 74 of file DbiModuleDescriptorBuilder.h.

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

◆ getObjFileName()

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

Definition at line 62 of file DbiModuleDescriptorBuilder.h.

◆ getStreamIndex()

uint16_t DbiModuleDescriptorBuilder::getStreamIndex ( ) const

◆ operator=()

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

◆ setObjFileName()

void DbiModuleDescriptorBuilder::setObjFileName ( StringRef  Name)

Definition at line 55 of file DbiModuleDescriptorBuilder.cpp.

◆ setPdbFilePathNI()

void DbiModuleDescriptorBuilder::setPdbFilePathNI ( uint32_t  NI)

Definition at line 59 of file DbiModuleDescriptorBuilder.cpp.

◆ source_files()

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

Definition at line 66 of file DbiModuleDescriptorBuilder.h.

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

Friends And Related Function Documentation

◆ DbiStreamBuilder

friend class DbiStreamBuilder

Definition at line 39 of file DbiModuleDescriptorBuilder.h.

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