LLVM 22.0.0git
llvm::pdb::NamedStreamMap Class Reference

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

Public Member Functions

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

Friends

class NamedStreamMapBuilder

Detailed Description

Definition at line 37 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)

Definition at line 113 of file NamedStreamMap.cpp.

References llvm::append_range(), and llvm::pdb::Offset.

◆ calculateSerializedLength()

uint32_t NamedStreamMap::calculateSerializedLength ( ) const

Definition at line 79 of file NamedStreamMap.cpp.

◆ commit()

◆ entries()

StringMap< uint32_t > NamedStreamMap::entries ( ) const

Definition at line 104 of file NamedStreamMap.cpp.

◆ get()

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

Definition at line 96 of file NamedStreamMap.cpp.

◆ getString()

StringRef NamedStreamMap::getString ( uint32_t Offset) const

Definition at line 87 of file NamedStreamMap.cpp.

References assert(), and llvm::pdb::Offset.

Referenced by hashString().

◆ 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()

◆ 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.

◆ NamedStreamMapBuilder

friend class NamedStreamMapBuilder
friend

Definition at line 38 of file NamedStreamMap.h.

References LLVM_ABI, NamedStreamMapBuilder, and llvm::pdb::Offset.

Referenced by NamedStreamMapBuilder.


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