LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::codeview::DebugStringTableSubsection Class Reference

Represents a read-write view of a CodeView string table. More...

#include "llvm/DebugInfo/CodeView/DebugStringTableSubsection.h"

Inheritance diagram for llvm::codeview::DebugStringTableSubsection:
Inheritance graph
[legend]

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ DebugStringTableSubsection()

DebugStringTableSubsection::DebugStringTableSubsection ( )

Definition at line 44 of file DebugStringTableSubsection.cpp.

Member Function Documentation

◆ begin()

StringMap< uint32_t >::const_iterator llvm::codeview::DebugStringTableSubsection::begin ( ) const
inline

◆ calculateSerializedSize()

uint32_t DebugStringTableSubsection::calculateSerializedSize ( ) const
overridevirtual

◆ classof()

static bool llvm::codeview::DebugStringTableSubsection::classof ( const DebugSubsection S)
inlinestatic

◆ commit()

Error DebugStringTableSubsection::commit ( BinaryStreamWriter Writer) const
overridevirtual

◆ end()

StringMap< uint32_t >::const_iterator llvm::codeview::DebugStringTableSubsection::end ( ) const
inline

◆ getIdForString()

uint32_t DebugStringTableSubsection::getIdForString ( StringRef  S) const

◆ getStringForId()

StringRef DebugStringTableSubsection::getStringForId ( uint32_t  Id) const

◆ insert()

uint32_t DebugStringTableSubsection::insert ( StringRef  S)

◆ size()

uint32_t DebugStringTableSubsection::size ( ) const

Definition at line 86 of file DebugStringTableSubsection.cpp.

References llvm::StringMapImpl::size().

◆ sortedIds()

std::vector< uint32_t > DebugStringTableSubsection::sortedIds ( ) const

Definition at line 88 of file DebugStringTableSubsection.cpp.

References llvm::sort().


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