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 39 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)

◆ calculateSerializedLength()

uint32_t NamedStreamMap::calculateSerializedLength ( ) const

Definition at line 84 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 92 of file NamedStreamMap.cpp.

References assert().

Referenced by hashString(), and llvm::pdb::NamedStreamMapTraits::storageKeyToLookupKey().

◆ hashString()

uint32_t NamedStreamMap::hashString ( uint32_t  Offset) const

Definition at line 97 of file NamedStreamMap.cpp.

References getString(), and llvm::pdb::hashStringV1().

◆ load()

Error NamedStreamMap::load ( BinaryStreamReader Stream)

◆ set()

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

Definition at line 125 of file NamedStreamMap.cpp.

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

◆ size()

uint32_t NamedStreamMap::size ( ) const

Definition at line 90 of file NamedStreamMap.cpp.

Friends And Related Function Documentation

◆ NamedStreamMapBuilder

friend class NamedStreamMapBuilder
friend

Definition at line 40 of file NamedStreamMap.h.


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