LLVM  9.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 (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 37 of file DbiStream.h.

Constructor & Destructor Documentation

◆ DbiStream()

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

Definition at line 47 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 152 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 176 of file DbiStream.cpp.

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

◆ getDbiVersion()

PdbRaw_DbiVer DbiStream::getDbiVersion ( ) const

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

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

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 359 of file DbiStream.cpp.

◆ getFlags()

uint16_t DbiStream::getFlags ( ) const

Definition at line 162 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 66 of file DbiStream.h.

References llvm::pdb::DbiSecContribVer60, and llvm::pdb::SectionContribs.

◆ getMachineType()

PDB_Machine DbiStream::getMachineType ( ) const

Definition at line 196 of file DbiStream.cpp.

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

◆ getModiSubstreamData()

BinarySubstreamRef DbiStream::getModiSubstreamData ( ) const

Definition at line 355 of file DbiStream.cpp.

◆ getNewFpoRecords()

const DebugFrameDataSubsectionRef & DbiStream::getNewFpoRecords ( ) const

Definition at line 213 of file DbiStream.cpp.

◆ getOldFpoRecords()

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

Definition at line 207 of file DbiStream.cpp.

◆ getPdbDllRbld()

uint16_t DbiStream::getPdbDllRbld ( ) const

Definition at line 188 of file DbiStream.cpp.

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

◆ getPdbDllVersion()

uint32_t DbiStream::getPdbDllVersion ( ) const

Definition at line 190 of file DbiStream.cpp.

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

◆ getPublicSymbolStreamIndex()

uint16_t DbiStream::getPublicSymbolStreamIndex ( ) const

◆ getSecMapSubstreamData()

BinarySubstreamRef DbiStream::getSecMapSubstreamData ( ) const

Definition at line 351 of file DbiStream.cpp.

◆ getSectionContributionData()

BinarySubstreamRef DbiStream::getSectionContributionData ( ) const

Definition at line 347 of file DbiStream.cpp.

◆ getSectionHeaders()

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

Definition at line 201 of file DbiStream.cpp.

◆ getSectionMap()

FixedStreamArray< SecMapEntry > DbiStream::getSectionMap ( ) const

Definition at line 219 of file DbiStream.cpp.

◆ getSymRecordStreamIndex()

uint32_t DbiStream::getSymRecordStreamIndex ( ) const

Definition at line 192 of file DbiStream.cpp.

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

◆ getTypeServerMapSubstreamData()

BinarySubstreamRef DbiStream::getTypeServerMapSubstreamData ( ) const

Definition at line 363 of file DbiStream.cpp.

◆ hasCTypes()

bool DbiStream::hasCTypes ( ) const

◆ hasNewFpoRecords()

bool DbiStream::hasNewFpoRecords ( ) const

Definition at line 211 of file DbiStream.cpp.

◆ hasOldFpoRecords()

bool DbiStream::hasOldFpoRecords ( ) const

Definition at line 205 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 38 of file DbiStream.h.


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