Lines Matching refs:Fixup
34 void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
40 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
66 void BPFAsmBackend::applyFixup(const MCFixup &Fixup, char *Data, in applyFixup() argument
70 if (Fixup.getKind() == FK_SecRel_4 || Fixup.getKind() == FK_SecRel_8) { in applyFixup()
72 } else if (Fixup.getKind() == FK_Data_4 || Fixup.getKind() == FK_Data_8) { in applyFixup()
73 unsigned Size = Fixup.getKind() == FK_Data_4 ? 4 : 8; in applyFixup()
77 Data[Fixup.getOffset() + Idx] = uint8_t(Value >> (i * 8)); in applyFixup()
80 assert(Fixup.getKind() == FK_PCRel_2); in applyFixup()
83 Data[Fixup.getOffset() + 2] = Value & 0xFF; in applyFixup()
84 Data[Fixup.getOffset() + 3] = Value >> 8; in applyFixup()
86 Data[Fixup.getOffset() + 2] = Value >> 8; in applyFixup()
87 Data[Fixup.getOffset() + 3] = Value & 0xFF; in applyFixup()