Pointer64Anon was lifted out of the MachO backend and into aarch64.h when that
header was created, but Pointer64Anon is really a MachO-specific "normalized"
relocation value, rather than a generic Edge::Kind. Any uses can be safely
replaced with Pointer64.
(Side note: the role of MachOPointer64Anon is to aid MachO relocation parsing:
For MachOPointer64, the target symbol is specified by the r_symbolnum field in
the relocation. For MachOPointer64Anon the address of the anonymous target is
read from the fixup location.)
Branch26 = Edge::FirstRelocation,
Pointer32,
Pointer64,
- Pointer64Anon,
Page21,
PageOffset12,
MoveWide16,
*(ulittle32_t *)FixupPtr = Value;
break;
}
- case Pointer64:
- case Pointer64Anon: {
+ case Pointer64: {
uint64_t Value = E.getTarget().getAddress().getValue() + E.getAddend();
*(ulittle64_t *)FixupPtr = Value;
break;
else
return TargetSymbolOrErr.takeError();
Addend = TargetAddress - TargetSymbol->getAddress();
- Kind = aarch64::Pointer64Anon;
+ Kind = aarch64::Pointer64;
break;
}
case MachOPage21:
return "Branch26";
case Pointer64:
return "Pointer64";
- case Pointer64Anon:
- return "Pointer64Anon";
case Page21:
return "Page21";
case PageOffset12: