9#ifndef LLVM_CODEGEN_DWARFSTRINGPOOLENTRY_H
10#define LLVM_CODEGEN_DWARFSTRINGPOOLENTRY_H
72 explicit operator bool()
const {
return !MapEntry.
isNull(); }
91 if (isa<ByValStringEntryPtr>(MapEntry))
92 return cast<ByValStringEntryPtr>(MapEntry)->first();
94 return cast<ExtStringEntryPtr>(MapEntry)->String;
99 if (isa<ByValStringEntryPtr>(MapEntry))
100 return cast<ByValStringEntryPtr>(MapEntry)->second;
102 return *cast<ExtStringEntryPtr>(MapEntry);
This file defines the StringMap class.
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
This file defines the PointerUnion class, which is a discriminated union of pointer types.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
DwarfStringPoolEntryRef: Dwarf string pool entry reference.
bool operator!=(const DwarfStringPoolEntryRef &X) const
const DwarfStringPoolEntry & getEntry() const
unsigned getIndex() const
StringRef getString() const
DwarfStringPoolEntryRef(const StringMapEntry< DwarfStringPoolEntry > &Entry)
ASSUMPTION: DwarfStringPoolEntryRef keeps pointer to Entry, thus specified entry mustn`t be reallocat...
DwarfStringPoolEntryRef()=default
uint64_t getOffset() const
bool operator==(const DwarfStringPoolEntryRef &X) const
DwarfStringPoolEntryRef(const DwarfStringPoolEntryWithExtString &Entry)
ASSUMPTION: DwarfStringPoolEntryRef keeps pointer to Entry, thus specified entry mustn`t be reallocat...
MCSymbol * getSymbol() const
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
A discriminated union of two or more pointer types, with the discriminator in the low bit of the poin...
bool isNull() const
Test if the pointer held in the union is null, regardless of which type it is.
void * getOpaqueValue() const
StringMapEntry - This is used to represent one value that is inserted into a StringMap.
StringRef - Represent a constant reference to a string, i.e.
This is an optimization pass for GlobalISel generic memory operations.
DwarfStringPoolEntry with string keeping externally.
Data for a string pool entry.
static constexpr unsigned NotIndexed