LLVM 20.0.0git
|
Represents a read-write view of a CodeView string table. More...
#include "llvm/DebugInfo/CodeView/DebugStringTableSubsection.h"
Public Member Functions | |
DebugStringTableSubsection () | |
uint32_t | insert (StringRef S) |
uint32_t | getIdForString (StringRef S) const |
StringRef | getStringForId (uint32_t Id) const |
uint32_t | calculateSerializedSize () const override |
Error | commit (BinaryStreamWriter &Writer) const override |
uint32_t | size () const |
StringMap< uint32_t >::const_iterator | begin () const |
StringMap< uint32_t >::const_iterator | end () const |
std::vector< uint32_t > | sortedIds () const |
Public Member Functions inherited from llvm::codeview::DebugSubsection | |
DebugSubsection (DebugSubsectionKind Kind) | |
virtual | ~DebugSubsection () |
DebugSubsectionKind | kind () const |
virtual Error | commit (BinaryStreamWriter &Writer) const =0 |
virtual uint32_t | calculateSerializedSize () const =0 |
Static Public Member Functions | |
static bool | classof (const DebugSubsection *S) |
Static Public Member Functions inherited from llvm::codeview::DebugSubsection | |
static bool | classof (const DebugSubsection *S) |
Additional Inherited Members | |
Protected Attributes inherited from llvm::codeview::DebugSubsection | |
DebugSubsectionKind | Kind |
Represents a read-write view of a CodeView string table.
DebugStringTableSubsection owns the underlying storage for the table, and is capable of serializing the string table into a format understood by DebugStringTableSubsectionRef.
Definition at line 56 of file DebugStringTableSubsection.h.
DebugStringTableSubsection::DebugStringTableSubsection | ( | ) |
Definition at line 43 of file DebugStringTableSubsection.cpp.
|
inline |
Definition at line 78 of file DebugStringTableSubsection.h.
References llvm::StringMap< ValueTy, AllocatorTy >::begin().
|
overridevirtual |
Implements llvm::codeview::DebugSubsection.
Definition at line 59 of file DebugStringTableSubsection.cpp.
Referenced by llvm::pdb::PDBStringTableBuilder::calculateSerializedSize().
|
inlinestatic |
Definition at line 60 of file DebugStringTableSubsection.h.
References llvm::codeview::DebugSubsection::kind(), and llvm::codeview::StringTable.
|
overridevirtual |
Implements llvm::codeview::DebugSubsection.
Definition at line 63 of file DebugStringTableSubsection.cpp.
References assert(), llvm::codeview::EC, End, llvm::BinaryStreamWriter::getOffset(), llvm::Offset, llvm::BinaryStreamWriter::setOffset(), llvm::Error::success(), and llvm::BinaryStreamWriter::writeCString().
|
inline |
Definition at line 82 of file DebugStringTableSubsection.h.
References llvm::StringMap< ValueTy, AllocatorTy >::end().
Definition at line 96 of file DebugStringTableSubsection.cpp.
References assert(), llvm::StringMap< ValueTy, AllocatorTy >::end(), and llvm::StringMap< ValueTy, AllocatorTy >::find().
Referenced by llvm::codeview::DebugCrossModuleImportsSubsection::commit(), llvm::pdb::PDBStringTableBuilder::getIdForString(), and llvm::codeview::DebugChecksumsSubsection::mapChecksumOffset().
Definition at line 102 of file DebugStringTableSubsection.cpp.
References assert().
Referenced by llvm::pdb::PDBStringTableBuilder::getStringForId().
Definition at line 46 of file DebugStringTableSubsection.cpp.
References llvm::StringMap< ValueTy, AllocatorTy >::insert(), P, and llvm::StringRef::size().
Referenced by llvm::codeview::DebugChecksumsSubsection::addChecksum(), llvm::codeview::DebugCrossModuleImportsSubsection::addImport(), and llvm::pdb::PDBStringTableBuilder::insert().
uint32_t DebugStringTableSubsection::size | ( | ) | const |
Definition at line 85 of file DebugStringTableSubsection.cpp.
References llvm::StringMapImpl::size().
std::vector< uint32_t > DebugStringTableSubsection::sortedIds | ( | ) | const |
Definition at line 87 of file DebugStringTableSubsection.cpp.
References llvm::sort().