Go to the documentation of this file.
9 #ifndef LLVM_DEBUGINFO_DWARF_DWARFFORMVALUE_H
10 #define LLVM_DEBUGINFO_DWARF_DWARFFORMVALUE_H
24 class DWARFDataExtractor;
55 const uint8_t *data =
nullptr;
63 const DWARFUnit *U =
nullptr;
64 const DWARFContext *
C =
nullptr;
197 auto S = V->getAsCString();
214 const char *Default) {
227 return V->getAsUnsignedConstant();
249 return V->getAsReference();
271 return V->getAsSignedConstant();
292 return V->getAsAddress();
299 return V->getAsSectionedAddress();
320 return V->getAsSectionOffset();
342 return V->getAsBlock();
350 #endif // LLVM_DEBUGINFO_DWARF_DWARFFORMVALUE_H
This is an optimization pass for GlobalISel generic memory operations.
Optional< object::SectionedAddress > toSectionedAddress(const Optional< DWARFFormValue > &V)
DWARFContext This data structure is the top level entity that deals with dwarf debug information pars...
Optional< ArrayRef< uint8_t > > toBlock(const Optional< DWARFFormValue > &V)
Take an optional DWARFFormValue and try to extract block data.
Tagged union holding either a T or a Error.
void consumeError(Error Err)
Consume a Error without doing anything.
Optional< uint64_t > toAddress(const Optional< DWARFFormValue > &V)
Take an optional DWARFFormValue and try to extract an address.
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
(vector float) vec_cmpeq(*A, *B) C
StringRef toStringRef(const Optional< DWARFFormValue > &V, StringRef Default={})
Take an optional DWARFFormValue and try to extract a string value from it.
Optional< uint64_t > toSectionOffset(const Optional< DWARFFormValue > &V)
Take an optional DWARFFormValue and try to extract an section offset.
This class implements an extremely fast bulk output stream that can only output to a stream.
DwarfFormat
Constants that define the DWARF format as 32 or 64 bit.
Optional< uint64_t > toReference(const Optional< DWARFFormValue > &V)
Take an optional DWARFFormValue and try to extract an reference.
static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")
Optional< const char * > toString(const Optional< DWARFFormValue > &V)
Take an optional DWARFFormValue and try to extract a string value from it.
StringRef - Represent a constant reference to a string, i.e.
add sub stmia L5 ldr r0 bl L_printf $stub Instead of a and a wouldn t it be better to do three moves *Return an aggregate type is even return S
PointerUnion< const Value *, const PseudoSourceValue * > ValueType
Optional< uint64_t > toUnsigned(const Optional< DWARFFormValue > &V)
Take an optional DWARFFormValue and try to extract an unsigned constant.
constexpr T value_or(U &&alt) const &
LLVM Value Representation.
Optional< int64_t > toSigned(const Optional< DWARFFormValue > &V)
Take an optional DWARFFormValue and try to extract an signed constant.
Container for dump options that control which debug information will be dumped.