16std::pair<uint64_t, dwarf::DwarfFormat>
33 "unsupported reserved unit length of value 0x%8.8" PRIx64,
Length);
57 std::optional<RelocAddrEntry> E = Obj->
find(*Section, *Off);
59 if (!E || (Err && *Err))
62 *SecNdx = E->SectionIndex;
71std::optional<uint64_t>
80 switch (Encoding & 0x0F) {
120 switch (Encoding & 0x70) {
125 Result += PCRelOffset;
virtual std::optional< RelocAddrEntry > find(const DWARFSection &Sec, uint64_t Pos) const =0
Helper for Errors used as out-parameters.
Lightweight error class with error context and mandatory checking.
@ C
The default llvm calling convention, compatible with C.
DwarfFormat
Constants that define the DWARF format as 32 or 64 bit.
@ DW_LENGTH_lo_reserved
Special values for an initial length field.
@ DW_LENGTH_DWARF64
Indicator of 64-bit DWARF format.
uint64_t resolveRelocation(RelocationResolver Resolver, const RelocationRef &R, uint64_t S, uint64_t LocData)
This is an optimization pass for GlobalISel generic memory operations.
Error createStringError(std::error_code EC, char const *Fmt, const Ts &... Vals)
Create formatted StringError object.
void cantFail(Error Err, const char *Msg=nullptr)
Report a fatal error if Err is a failure value.
void consumeError(Error Err)
Consume a Error without doing anything.
static const uint64_t UndefSection