Extract a DWARF‐encoded pointer at Offset using Encoding.
Synopsis
Declared in <llvm/DebugInfo/DWARF/LowLevel/DWARFDataExtractorSimple.h>
std::optional<uint64_t>
getEncodedPointer(
uint64_t* Offset,
uint8_t Encoding,
uint64_t PCRelOffset) const;
Description
There is a DWARF encoding that uses a PC‐relative adjustment. For these values, PCRelOffset is used to fix them, which should reflect the absolute address of this pointer.
Return Value
The decoded pointer value, or std::nullopt if omitted or unsupported.
Parameters
Name |
Description |
Offset |
Offset into the data; advanced past the pointer on success. |
Encoding |
DWARF pointer encoding (DW_EH_PE_*). |
PCRelOffset |
Absolute address used to fix up PC‐relative encodings. |
Created with MrDocs