LLVM 20.0.0git
|
DwarfStringPoolEntryRef: Dwarf string pool entry reference. More...
#include "llvm/CodeGen/DwarfStringPoolEntry.h"
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:
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 |
|
inline |
ASSUMPTION: DwarfStringPoolEntryRef keeps pointer to Entry
, thus specified entry mustn`t be reallocated.
Definition at line 64 of file DwarfStringPoolEntry.h.
|
inline |
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.
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.
Referenced by llvm::DIEString::emitValue(), and llvm::DIEString::sizeOf().
|
inline |
Definition at line 81 of file DwarfStringPoolEntry.h.
References getEntry(), and llvm::DwarfStringPoolEntry::Offset.
Referenced by llvm::DIEString::emitValue(), llvm::NonRelocatableStringpool::getStringOffset(), and llvm::DIEString::sizeOf().
|
inline |
Definition at line 90 of file DwarfStringPoolEntry.h.
Referenced by llvm::DIEString::getString(), and llvm::DIEString::print().
|
inline |
Definition at line 75 of file DwarfStringPoolEntry.h.
References assert(), getEntry(), and llvm::DwarfStringPoolEntry::Symbol.
Referenced by llvm::DIEString::emitValue(), and llvm::DIEString::sizeOf().
|
inlineexplicit |
Definition at line 72 of file DwarfStringPoolEntry.h.
References llvm::PointerUnion< PTs >::isNull().
|
inline |
Definition at line 109 of file DwarfStringPoolEntry.h.
References llvm::PointerUnion< PTs >::getOpaqueValue(), and X.
|
inline |
Definition at line 105 of file DwarfStringPoolEntry.h.
References llvm::PointerUnion< PTs >::getOpaqueValue(), and X.