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

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

Public Member Functions

 NamedStreamMap ()
 
Error load (BinaryStreamReader &Stream)
 
Error commit (BinaryStreamWriter &Writer) const
 
uint32_t calculateSerializedLength () const
 
uint32_t size () const
 
bool get (StringRef Stream, uint32_t &StreamNo) const
 
void set (StringRef Stream, uint32_t StreamNo)
 
uint32_t appendStringData (StringRef S)
 
StringRef getString (uint32_t Offset) const
 
uint32_t hashString (uint32_t Offset) const
 
StringMap< uint32_tentries () const
 

Friends

class NamedStreamMapBuilder
 

Detailed Description

Definition at line 28 of file NamedStreamMap.h.

Constructor & Destructor Documentation

◆ NamedStreamMap()

NamedStreamMap::NamedStreamMap ( )

Definition at line 49 of file NamedStreamMap.cpp.

Member Function Documentation

◆ appendStringData()

uint32_t NamedStreamMap::appendStringData ( StringRef  S)

Definition at line 117 of file NamedStreamMap.cpp.

References llvm::StringRef::begin(), and llvm::StringRef::end().

◆ calculateSerializedLength()

uint32_t NamedStreamMap::calculateSerializedLength ( ) const

Definition at line 83 of file NamedStreamMap.cpp.

Referenced by llvm::pdb::InfoStreamBuilder::finalizeMsfLayout().

◆ commit()

Error NamedStreamMap::commit ( BinaryStreamWriter Writer) const

◆ entries()

StringMap< uint32_t > NamedStreamMap::entries ( ) const

◆ get()

bool NamedStreamMap::get ( StringRef  Stream,
uint32_t StreamNo 
) const

◆ getString()

StringRef NamedStreamMap::getString ( uint32_t  Offset) const

Definition at line 91 of file NamedStreamMap.cpp.

References assert().

◆ hashString()

uint32_t NamedStreamMap::hashString ( uint32_t  Offset) const

Definition at line 96 of file NamedStreamMap.cpp.

References llvm::pdb::hashStringV1().

◆ load()

Error NamedStreamMap::load ( BinaryStreamReader Stream)

◆ set()

void NamedStreamMap::set ( StringRef  Stream,
uint32_t  StreamNo 
)

Definition at line 124 of file NamedStreamMap.cpp.

Referenced by llvm::pdb::PDBFileBuilder::addNamedStream().

◆ size()

uint32_t NamedStreamMap::size ( ) const

Definition at line 89 of file NamedStreamMap.cpp.

Friends And Related Function Documentation

◆ NamedStreamMapBuilder

friend class NamedStreamMapBuilder
friend

Definition at line 29 of file NamedStreamMap.h.


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