9 #ifndef LLVM_CODEGEN_DWARFSTRINGPOOLENTRY_H 10 #define LLVM_CODEGEN_DWARFSTRINGPOOLENTRY_H 43 : MapEntryAndIndexed(&Entry,
Indexed) {}
45 explicit operator bool()
const {
return getMapEntry(); }
47 assert(getMapEntry()->second.Symbol &&
"No symbol available!");
48 return getMapEntry()->second.Symbol;
50 uint64_t
getOffset()
const {
return getMapEntry()->second.Offset; }
55 return getMapEntry()->second.Index;
62 return getMapEntry() ==
X.getMapEntry();
65 return getMapEntry() !=
X.getMapEntry();
StringRef getString() const
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
MCSymbol * getSymbol() const
This class represents lattice values for constants.
PointerTy getPointer() const
StringMapEntry - This is used to represent one value that is inserted into a StringMap.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
DwarfStringPoolEntry getEntry() const
Return the entire string pool entry for convenience.
DwarfStringPoolEntryRef(const StringMapEntry< DwarfStringPoolEntry > &Entry, bool Indexed)
uint64_t getOffset() const
static constexpr unsigned NotIndexed
Data for a string pool entry.
PointerIntPair - This class implements a pair of a pointer and small integer.
DwarfStringPoolEntryRef()=default
bool operator==(const DwarfStringPoolEntryRef &X) const
unsigned getIndex() const
bool operator!=(const DwarfStringPoolEntryRef &X) const
String pool entry reference.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
StringRef - Represent a constant reference to a string, i.e.