LLVM  8.0.1
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]
Collaboration diagram for llvm::codeview::DebugStringTableSubsection:
Collaboration 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
 

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 57 of file DebugStringTableSubsection.h.

Constructor & Destructor Documentation

◆ DebugStringTableSubsection()

DebugStringTableSubsection::DebugStringTableSubsection ( )

Definition at line 45 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

Implements llvm::codeview::DebugSubsection.

Definition at line 61 of file DebugStringTableSubsection.cpp.

◆ 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

Definition at line 104 of file DebugStringTableSubsection.cpp.

References assert().

◆ insert()

uint32_t DebugStringTableSubsection::insert ( StringRef  S)

◆ size()

uint32_t DebugStringTableSubsection::size ( ) const

Definition at line 87 of file DebugStringTableSubsection.cpp.

References llvm::StringMapImpl::size().

◆ sortedIds()

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

Definition at line 89 of file DebugStringTableSubsection.cpp.

References llvm::sort().


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