LLVM 20.0.0git
|
#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_t > | entries () const |
Friends | |
class | NamedStreamMapBuilder |
Definition at line 36 of file NamedStreamMap.h.
NamedStreamMap::NamedStreamMap | ( | ) |
Definition at line 46 of file NamedStreamMap.cpp.
Definition at line 114 of file NamedStreamMap.cpp.
References llvm::append_range(), and llvm::pdb::Offset.
Referenced by llvm::pdb::NamedStreamMapTraits::lookupKeyToStorageKey().
uint32_t NamedStreamMap::calculateSerializedLength | ( | ) | const |
Definition at line 80 of file NamedStreamMap.cpp.
Referenced by llvm::pdb::InfoStreamBuilder::finalizeMsfLayout().
Error NamedStreamMap::commit | ( | BinaryStreamWriter & | Writer | ) | const |
Definition at line 63 of file NamedStreamMap.cpp.
References llvm::pdb::Data, llvm::Error::success(), llvm::BinaryStreamWriter::writeFixedString(), and llvm::BinaryStreamWriter::writeInteger().
Referenced by llvm::pdb::InfoStreamBuilder::commit().
Definition at line 105 of file NamedStreamMap.cpp.
Referenced by llvm::pdb::InfoStream::named_streams().
Definition at line 97 of file NamedStreamMap.cpp.
Referenced by llvm::pdb::InfoStream::getNamedStreamIndex(), and llvm::pdb::PDBFileBuilder::getNamedStreamIndex().
Definition at line 88 of file NamedStreamMap.cpp.
References assert(), and llvm::pdb::Offset.
Referenced by hashString(), and llvm::pdb::NamedStreamMapTraits::storageKeyToLookupKey().
Definition at line 93 of file NamedStreamMap.cpp.
References getString(), llvm::pdb::hashStringV1(), and llvm::pdb::Offset.
Error NamedStreamMap::load | ( | BinaryStreamReader & | Stream | ) |
Definition at line 48 of file NamedStreamMap.cpp.
References llvm::StringRef::begin(), llvm::pdb::corrupt_file, llvm::StringRef::end(), llvm::joinErrors(), llvm::BinaryStreamReader::readFixedString(), and llvm::BinaryStreamReader::readInteger().
Referenced by llvm::pdb::InfoStream::reload().
Definition at line 121 of file NamedStreamMap.cpp.
uint32_t NamedStreamMap::size | ( | ) | const |
Definition at line 86 of file NamedStreamMap.cpp.
|
friend |
Definition at line 37 of file NamedStreamMap.h.