LLVM  7.0.0svn
Public Member Functions | Friends | List of all members
llvm::pdb::DbiStream Class Reference

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

Public Member Functions

 DbiStream (PDBFile &File, std::unique_ptr< msf::MappedBlockStream > Stream)
 
 ~DbiStream ()
 
Error reload ()
 
PdbRaw_DbiVer getDbiVersion () const
 
uint32_t getAge () const
 
uint16_t getPublicSymbolStreamIndex () const
 
uint16_t getGlobalSymbolStreamIndex () const
 
uint16_t getFlags () const
 
bool isIncrementallyLinked () const
 
bool hasCTypes () const
 
bool isStripped () const
 
uint16_t getBuildNumber () const
 
uint16_t getBuildMajorVersion () const
 
uint16_t getBuildMinorVersion () const
 
uint16_t getPdbDllRbld () const
 
uint32_t getPdbDllVersion () const
 
uint32_t getSymRecordStreamIndex () const
 
PDB_Machine getMachineType () const
 
BinarySubstreamRef getSectionContributionData () const
 
BinarySubstreamRef getSecMapSubstreamData () const
 
BinarySubstreamRef getModiSubstreamData () const
 
BinarySubstreamRef getFileInfoSubstreamData () const
 
BinarySubstreamRef getTypeServerMapSubstreamData () const
 
BinarySubstreamRef getECSubstreamData () const
 
uint32_t getDebugStreamIndex (DbgHeaderType Type) const
 If the given stream type is present, returns its stream index. More...
 
const DbiModuleListmodules () const
 
FixedStreamArray< object::coff_sectiongetSectionHeaders ()
 
FixedStreamArray< object::FpoDatagetFpoRecords ()
 
FixedStreamArray< SecMapEntrygetSectionMap () const
 
void visitSectionContributions (ISectionContribVisitor &Visitor) const
 
Expected< StringRefgetECName (uint32_t NI) const
 

Friends

class DbiStreamBuilder
 

Detailed Description

Definition at line 37 of file DbiStream.h.

Constructor & Destructor Documentation

◆ DbiStream()

DbiStream::DbiStream ( PDBFile File,
std::unique_ptr< msf::MappedBlockStream Stream 
)

Definition at line 48 of file DbiStream.cpp.

References ~DbiStream().

◆ ~DbiStream()

DbiStream::~DbiStream ( )
default

Referenced by DbiStream().

Member Function Documentation

◆ getAge()

uint32_t DbiStream::getAge ( ) const

Definition at line 151 of file DbiStream.cpp.

References llvm::pdb::DbiStreamHeader::Age.

◆ getBuildMajorVersion()

uint16_t DbiStream::getBuildMajorVersion ( ) const

◆ getBuildMinorVersion()

uint16_t DbiStream::getBuildMinorVersion ( ) const

◆ getBuildNumber()

uint16_t DbiStream::getBuildNumber ( ) const

Definition at line 175 of file DbiStream.cpp.

References llvm::pdb::DbiStreamHeader::BuildNumber.

◆ getDbiVersion()

PdbRaw_DbiVer DbiStream::getDbiVersion ( ) const

Definition at line 146 of file DbiStream.cpp.

References llvm::pdb::DbiStreamHeader::VersionHeader.

◆ getDebugStreamIndex()

uint32_t DbiStream::getDebugStreamIndex ( DbgHeaderType  Type) const

If the given stream type is present, returns its stream index.

If it is not present, returns InvalidStreamIndex.

Definition at line 344 of file DbiStream.cpp.

References llvm::pdb::kInvalidStreamIndex, and T.

Referenced by getECName().

◆ getECName()

Expected< StringRef > DbiStream::getECName ( uint32_t  NI) const

◆ getECSubstreamData()

BinarySubstreamRef DbiStream::getECSubstreamData ( ) const

◆ getFileInfoSubstreamData()

BinarySubstreamRef DbiStream::getFileInfoSubstreamData ( ) const

Definition at line 321 of file DbiStream.cpp.

◆ getFlags()

uint16_t DbiStream::getFlags ( ) const

Definition at line 161 of file DbiStream.cpp.

References llvm::pdb::DbiStreamHeader::Flags.

◆ getFpoRecords()

FixedStreamArray< object::FpoData > DbiStream::getFpoRecords ( )

Definition at line 204 of file DbiStream.cpp.

◆ getGlobalSymbolStreamIndex()

uint16_t DbiStream::getGlobalSymbolStreamIndex ( ) const

◆ getMachineType()

PDB_Machine DbiStream::getMachineType ( ) const

Definition at line 195 of file DbiStream.cpp.

References Machine, and llvm::pdb::DbiStreamHeader::MachineType.

◆ getModiSubstreamData()

BinarySubstreamRef DbiStream::getModiSubstreamData ( ) const

Definition at line 317 of file DbiStream.cpp.

◆ getPdbDllRbld()

uint16_t DbiStream::getPdbDllRbld ( ) const

Definition at line 187 of file DbiStream.cpp.

References llvm::pdb::DbiStreamHeader::PdbDllRbld.

◆ getPdbDllVersion()

uint32_t DbiStream::getPdbDllVersion ( ) const

Definition at line 189 of file DbiStream.cpp.

References llvm::pdb::DbiStreamHeader::PdbDllVersion.

◆ getPublicSymbolStreamIndex()

uint16_t DbiStream::getPublicSymbolStreamIndex ( ) const

◆ getSecMapSubstreamData()

BinarySubstreamRef DbiStream::getSecMapSubstreamData ( ) const

Definition at line 313 of file DbiStream.cpp.

◆ getSectionContributionData()

BinarySubstreamRef DbiStream::getSectionContributionData ( ) const

Definition at line 309 of file DbiStream.cpp.

◆ getSectionHeaders()

FixedStreamArray< object::coff_section > DbiStream::getSectionHeaders ( )

Definition at line 200 of file DbiStream.cpp.

◆ getSectionMap()

FixedStreamArray< SecMapEntry > DbiStream::getSectionMap ( ) const

Definition at line 210 of file DbiStream.cpp.

◆ getSymRecordStreamIndex()

uint32_t DbiStream::getSymRecordStreamIndex ( ) const

Definition at line 191 of file DbiStream.cpp.

References llvm::pdb::DbiStreamHeader::SymRecordStreamIndex.

◆ getTypeServerMapSubstreamData()

BinarySubstreamRef DbiStream::getTypeServerMapSubstreamData ( ) const

Definition at line 325 of file DbiStream.cpp.

◆ hasCTypes()

bool DbiStream::hasCTypes ( ) const

◆ isIncrementallyLinked()

bool DbiStream::isIncrementallyLinked ( ) const

◆ isStripped()

bool DbiStream::isStripped ( ) const

◆ modules()

const DbiModuleList & DbiStream::modules ( ) const

Definition at line 208 of file DbiStream.cpp.

◆ reload()

Error DbiStream::reload ( )

◆ visitSectionContributions()

void DbiStream::visitSectionContributions ( ISectionContribVisitor Visitor) const

Friends And Related Function Documentation

◆ DbiStreamBuilder

friend class DbiStreamBuilder
friend

Definition at line 38 of file DbiStream.h.


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