LLVM 20.0.0git
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 36 of file NamedStreamMap.h.

Constructor & Destructor Documentation

◆ NamedStreamMap()

NamedStreamMap::NamedStreamMap ( )

Definition at line 45 of file NamedStreamMap.cpp.

Member Function Documentation

◆ appendStringData()

uint32_t NamedStreamMap::appendStringData ( StringRef  S)

◆ calculateSerializedLength()

uint32_t NamedStreamMap::calculateSerializedLength ( ) const

Definition at line 79 of file NamedStreamMap.cpp.

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

◆ commit()

Error NamedStreamMap::commit ( BinaryStreamWriter Writer) const

◆ entries()

StringMap< uint32_t > NamedStreamMap::entries ( ) const

Definition at line 104 of file NamedStreamMap.cpp.

Referenced by llvm::pdb::InfoStream::named_streams().

◆ get()

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

◆ getString()

StringRef NamedStreamMap::getString ( uint32_t  Offset) const

◆ hashString()

uint32_t NamedStreamMap::hashString ( uint32_t  Offset) const

Definition at line 92 of file NamedStreamMap.cpp.

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

◆ load()

Error NamedStreamMap::load ( BinaryStreamReader Stream)

◆ set()

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

Definition at line 120 of file NamedStreamMap.cpp.

◆ size()

uint32_t NamedStreamMap::size ( ) const

Definition at line 85 of file NamedStreamMap.cpp.

Friends And Related Function Documentation

◆ NamedStreamMapBuilder

friend class NamedStreamMapBuilder
friend

Definition at line 37 of file NamedStreamMap.h.


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