LLVM 22.0.0git
|
#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_t > | entries () const |
Friends | |
class | NamedStreamMapBuilder |
Definition at line 37 of file NamedStreamMap.h.
NamedStreamMap::NamedStreamMap | ( | ) |
Definition at line 45 of file NamedStreamMap.cpp.
Definition at line 113 of file NamedStreamMap.cpp.
References llvm::append_range(), and llvm::pdb::Offset.
uint32_t NamedStreamMap::calculateSerializedLength | ( | ) | const |
Definition at line 79 of file NamedStreamMap.cpp.
Error NamedStreamMap::commit | ( | BinaryStreamWriter & | Writer | ) | const |
Definition at line 62 of file NamedStreamMap.cpp.
References llvm::pdb::Data, llvm::Error::success(), llvm::BinaryStreamWriter::writeFixedString(), and llvm::BinaryStreamWriter::writeInteger().
Definition at line 104 of file NamedStreamMap.cpp.
Definition at line 96 of file NamedStreamMap.cpp.
Definition at line 87 of file NamedStreamMap.cpp.
References assert(), and llvm::pdb::Offset.
Referenced by hashString().
Definition at line 92 of file NamedStreamMap.cpp.
References getString(), llvm::pdb::hashStringV1(), and llvm::pdb::Offset.
Error NamedStreamMap::load | ( | BinaryStreamReader & | Stream | ) |
Definition at line 47 of file NamedStreamMap.cpp.
References llvm::StringRef::begin(), llvm::pdb::corrupt_file, llvm::StringRef::end(), llvm::joinErrors(), llvm::make_error(), llvm::BinaryStreamReader::readFixedString(), and llvm::BinaryStreamReader::readInteger().
Definition at line 120 of file NamedStreamMap.cpp.
uint32_t NamedStreamMap::size | ( | ) | const |
Definition at line 85 of file NamedStreamMap.cpp.
|
friend |
Definition at line 38 of file NamedStreamMap.h.
References LLVM_ABI, NamedStreamMapBuilder, and llvm::pdb::Offset.
Referenced by NamedStreamMapBuilder.