LLVM  8.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 ()
 
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 ( std::unique_ptr< BinaryStream Stream)
explicit

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 350 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 327 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

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

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

◆ getModiSubstreamData()

BinarySubstreamRef DbiStream::getModiSubstreamData ( ) const

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

◆ getSectionContributionData()

BinarySubstreamRef DbiStream::getSectionContributionData ( ) const

Definition at line 315 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 331 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 ( 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: