LLVM 22.0.0git
|
DwarfStringPoolEntryRef: Dwarf string pool entry reference. More...
#include "llvm/CodeGen/DwarfStringPoolEntry.h"
Public Member Functions | |
DwarfStringPoolEntryRef ()=default | |
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:
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.
|
default |
Referenced by operator!=(), and operator==().
|
inline |
ASSUMPTION: DwarfStringPoolEntryRef keeps pointer to Entry
, thus specified entry mustn`t be reallocated.
DwarfStringPoolEntryRef(const StringMapEntry<DwarfStringPoolEntry> &Entry) : MapEntry(&Entry) {}
/ ASSUMPTION: DwarfStringPoolEntryRef keeps pointer to Entry
, / thus specified entry mustn`t be reallocated.
Definition at line 69 of file DwarfStringPoolEntry.h.
|
inline |
Definition at line 98 of file DwarfStringPoolEntry.h.
References llvm::cast(), and llvm::isa().
Referenced by llvm::AsmPrinter::emitDwarfStringOffset(), getIndex(), getOffset(), and getSymbol().
|
inline |
Definition at line 84 of file DwarfStringPoolEntry.h.
References assert(), getEntry(), and llvm::DwarfStringPoolEntry::Index.
|
inline |
Definition at line 81 of file DwarfStringPoolEntry.h.
References getEntry(), and llvm::DwarfStringPoolEntry::Offset.
Referenced by llvm::NonRelocatableStringpool::getStringOffset().
|
inline |
Definition at line 90 of file DwarfStringPoolEntry.h.
References llvm::cast(), and llvm::isa().
|
inline |
Definition at line 75 of file DwarfStringPoolEntry.h.
References assert(), getEntry(), and llvm::DwarfStringPoolEntry::Symbol.
|
inlineexplicit |
Definition at line 72 of file DwarfStringPoolEntry.h.
|
inline |
Definition at line 109 of file DwarfStringPoolEntry.h.
References DwarfStringPoolEntryRef(), and X.
|
inline |
Definition at line 105 of file DwarfStringPoolEntry.h.
References DwarfStringPoolEntryRef(), and X.