LLVM 22.0.0git
llvm::pdb::DbiStream Class Reference

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

Public Member Functions

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

Friends

class DbiStreamBuilder

Detailed Description

Definition at line 40 of file DbiStream.h.

Constructor & Destructor Documentation

◆ DbiStream()

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

Definition at line 45 of file DbiStream.cpp.

References llvm::move().

◆ ~DbiStream()

DbiStream::~DbiStream ( )
default

References LLVM_ABI.

Member Function Documentation

◆ getAge()

uint32_t DbiStream::getAge ( ) const

Definition at line 150 of file DbiStream.cpp.

◆ 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.

◆ getDbiVersion()

PdbRaw_DbiVer DbiStream::getDbiVersion ( ) const

Definition at line 145 of file DbiStream.cpp.

◆ 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 llvm::pdb::Type.

◆ getECName()

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

Definition at line 234 of file DbiStream.cpp.

◆ 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.

◆ getGlobalSymbolStreamIndex()

uint16_t DbiStream::getGlobalSymbolStreamIndex ( ) const

Definition at line 156 of file DbiStream.cpp.

◆ getHeader()

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

Definition at line 69 of file DbiStream.h.

◆ getMachineType()

PDB_Machine DbiStream::getMachineType ( ) const

Definition at line 194 of file DbiStream.cpp.

References Machine.

◆ 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.

◆ getPdbDllVersion()

uint32_t DbiStream::getPdbDllVersion ( ) const

Definition at line 188 of file DbiStream.cpp.

◆ getPublicSymbolStreamIndex()

uint16_t DbiStream::getPublicSymbolStreamIndex ( ) const

Definition at line 152 of file DbiStream.cpp.

◆ 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.

◆ getTypeServerMapSubstreamData()

BinarySubstreamRef DbiStream::getTypeServerMapSubstreamData ( ) const

Definition at line 357 of file DbiStream.cpp.

◆ hasCTypes()

bool DbiStream::hasCTypes ( ) const

Definition at line 166 of file DbiStream.cpp.

References llvm::pdb::DbiFlags::FlagHasCTypesMask.

◆ 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

Definition at line 162 of file DbiStream.cpp.

References llvm::pdb::DbiFlags::FlagIncrementalMask.

◆ isStripped()

bool DbiStream::isStripped ( ) const

Definition at line 170 of file DbiStream.cpp.

References llvm::pdb::DbiFlags::FlagStrippedMask.

◆ modules()

const DbiModuleList & DbiStream::modules ( ) const

◆ reload()

◆ visitSectionContributions()

void DbiStream::visitSectionContributions ( ISectionContribVisitor & Visitor) const

◆ DbiStreamBuilder

friend class DbiStreamBuilder
friend

Definition at line 41 of file DbiStream.h.

References DbiStreamBuilder, and LLVM_ABI.

Referenced by DbiStreamBuilder.


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