LLVM: llvm::DwarfStringPoolEntryRef Class Reference (original) (raw)
DwarfStringPoolEntryRef: Dwarf string pool entry reference. More...
#include "[llvm/CodeGen/DwarfStringPoolEntry.h](DwarfStringPoolEntry%5F8h%5Fsource.html)"
Public Member Functions | |
---|---|
DwarfStringPoolEntryRef ()=default | |
DwarfStringPoolEntryRef (const StringMapEntry< DwarfStringPoolEntry > &Entry) | |
ASSUMPTION: DwarfStringPoolEntryRef keeps pointer to Entry, thus specified entry mustn`t be reallocated. | |
DwarfStringPoolEntryRef (const DwarfStringPoolEntryWithExtString &Entry) | |
ASSUMPTION: DwarfStringPoolEntryRef keeps pointer to Entry, thus specified entry mustn`t be reallocated. | |
operator bool () const | |
MCSymbol * | getSymbol () const |
uint64_t | getOffset () const |
unsigned | getIndex () const |
StringRef | getString () const |
const DwarfStringPoolEntry & | getEntry () const |
bool | operator== (const DwarfStringPoolEntryRef &X) const |
bool | operator!= (const DwarfStringPoolEntryRef &X) const |
DwarfStringPoolEntryRef: Dwarf string pool entry reference.
Dwarf string pool entry keeps string value and its data. There are two variants how data are represented:
- String data in pool - StringMapEntry.
- External string data - DwarfStringPoolEntryWithExtString.
The external data variant allows reducing memory usage for the case when string pool entry does not have data: string entry does not keep any data and so no need to waste space for the full DwarfStringPoolEntry. It is recommended to use external variant if not all entries of dwarf string pool have corresponding DwarfStringPoolEntry.
Definition at line 49 of file DwarfStringPoolEntry.h.
llvm::DwarfStringPoolEntryRef::DwarfStringPoolEntryRef ( ) | default |
---|
◆ DwarfStringPoolEntryRef() [2/3]
◆ DwarfStringPoolEntryRef() [3/3]
◆ getEntry()
◆ getIndex()
unsigned llvm::DwarfStringPoolEntryRef::getIndex ( ) const | inline |
---|
◆ getOffset()
uint64_t llvm::DwarfStringPoolEntryRef::getOffset ( ) const | inline |
---|
◆ getString()
StringRef llvm::DwarfStringPoolEntryRef::getString ( ) const | inline |
---|
◆ getSymbol()
MCSymbol * llvm::DwarfStringPoolEntryRef::getSymbol ( ) const | inline |
---|
◆ operator bool()
llvm::DwarfStringPoolEntryRef::operator bool ( ) const | inlineexplicit |
---|
◆ operator!=()
◆ operator==()
The documentation for this class was generated from the following file:
- include/llvm/CodeGen/DwarfStringPoolEntry.h