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

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

Public Member Functions

 DbiStream (std::unique_ptr< BinaryStream > Stream)
 
 ~DbiStream ()
 
Error reload (PDBFile *Pdb)
 
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
 
const DbiStreamHeadergetHeader () 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 () const
 
bool hasOldFpoRecords () const
 
FixedStreamArray< object::FpoDatagetOldFpoRecords () const
 
bool hasNewFpoRecords () const
 
const codeview::DebugFrameDataSubsectionRefgetNewFpoRecords () const
 
FixedStreamArray< SecMapEntrygetSectionMap () const
 
void visitSectionContributions (ISectionContribVisitor &Visitor) const
 
Expected< StringRefgetECName (uint32_t NI) const
 

Friends

class DbiStreamBuilder
 

Detailed Description

Definition at line 39 of file DbiStream.h.

Constructor & Destructor Documentation

◆ DbiStream()

DbiStream::DbiStream ( std::unique_ptr< BinaryStream Stream)
explicit

Definition at line 45 of file DbiStream.cpp.

◆ ~DbiStream()

DbiStream::~DbiStream ( )
default

Member Function Documentation

◆ getAge()

uint32_t DbiStream::getAge ( ) const

Definition at line 150 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 174 of file DbiStream.cpp.

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

◆ getDbiVersion()

PdbRaw_DbiVer DbiStream::getDbiVersion ( ) const

Definition at line 145 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 376 of file DbiStream.cpp.

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

◆ getECName()

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

Definition at line 234 of file DbiStream.cpp.

References llvm::pdb::PDBStringTable::getStringForID().

◆ getECSubstreamData()

BinarySubstreamRef DbiStream::getECSubstreamData ( ) const

Definition at line 361 of file DbiStream.cpp.

◆ getFileInfoSubstreamData()

BinarySubstreamRef DbiStream::getFileInfoSubstreamData ( ) const

Definition at line 353 of file DbiStream.cpp.

◆ getFlags()

uint16_t DbiStream::getFlags ( ) const

Definition at line 160 of file DbiStream.cpp.

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

◆ getGlobalSymbolStreamIndex()

uint16_t DbiStream::getGlobalSymbolStreamIndex ( ) const

◆ getHeader()

const DbiStreamHeader* llvm::pdb::DbiStream::getHeader ( ) const
inline

Definition at line 68 of file DbiStream.h.

◆ getMachineType()

PDB_Machine DbiStream::getMachineType ( ) const

Definition at line 194 of file DbiStream.cpp.

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

◆ getModiSubstreamData()

BinarySubstreamRef DbiStream::getModiSubstreamData ( ) const

Definition at line 349 of file DbiStream.cpp.

◆ getNewFpoRecords()

const DebugFrameDataSubsectionRef & DbiStream::getNewFpoRecords ( ) const

Definition at line 211 of file DbiStream.cpp.

◆ getOldFpoRecords()

FixedStreamArray< object::FpoData > DbiStream::getOldFpoRecords ( ) const

Definition at line 205 of file DbiStream.cpp.

◆ getPdbDllRbld()

uint16_t DbiStream::getPdbDllRbld ( ) const

Definition at line 186 of file DbiStream.cpp.

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

◆ getPdbDllVersion()

uint32_t DbiStream::getPdbDllVersion ( ) const

Definition at line 188 of file DbiStream.cpp.

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

◆ getPublicSymbolStreamIndex()

uint16_t DbiStream::getPublicSymbolStreamIndex ( ) const

◆ getSecMapSubstreamData()

BinarySubstreamRef DbiStream::getSecMapSubstreamData ( ) const

Definition at line 345 of file DbiStream.cpp.

◆ getSectionContributionData()

BinarySubstreamRef DbiStream::getSectionContributionData ( ) const

Definition at line 341 of file DbiStream.cpp.

◆ getSectionHeaders()

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

Definition at line 199 of file DbiStream.cpp.

◆ getSectionMap()

FixedStreamArray< SecMapEntry > DbiStream::getSectionMap ( ) const

Definition at line 217 of file DbiStream.cpp.

◆ getSymRecordStreamIndex()

uint32_t DbiStream::getSymRecordStreamIndex ( ) const

Definition at line 190 of file DbiStream.cpp.

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

◆ getTypeServerMapSubstreamData()

BinarySubstreamRef DbiStream::getTypeServerMapSubstreamData ( ) const

Definition at line 357 of file DbiStream.cpp.

◆ hasCTypes()

bool DbiStream::hasCTypes ( ) const

◆ hasNewFpoRecords()

bool DbiStream::hasNewFpoRecords ( ) const

Definition at line 209 of file DbiStream.cpp.

◆ hasOldFpoRecords()

bool DbiStream::hasOldFpoRecords ( ) const

Definition at line 203 of file DbiStream.cpp.

◆ isIncrementallyLinked()

bool DbiStream::isIncrementallyLinked ( ) const

◆ isStripped()

bool DbiStream::isStripped ( ) const

◆ modules()

const DbiModuleList & DbiStream::modules ( ) const

◆ reload()

Error DbiStream::reload ( PDBFile Pdb)

◆ visitSectionContributions()

void DbiStream::visitSectionContributions ( ISectionContribVisitor Visitor) const

Friends And Related Function Documentation

◆ DbiStreamBuilder

friend class DbiStreamBuilder
friend

Definition at line 40 of file DbiStream.h.


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