Lines Matching refs:Writer
31 void RecordARMScatteredRelocation(MachObjectWriter *Writer,
40 void RecordARMScatteredHalfRelocation(MachObjectWriter *Writer,
47 bool requiresExternRelocation(MachObjectWriter *Writer,
56 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm,
141 RecordARMScatteredHalfRelocation(MachObjectWriter *Writer, in RecordARMScatteredHalfRelocation() argument
158 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMScatteredHalfRelocation()
171 uint32_t Value = Writer->getSymbolAddress(*A, Layout); in RecordARMScatteredHalfRelocation()
173 uint64_t SecAddr = Writer->getSectionAddress(A->getFragment()->getParent()); in RecordARMScatteredHalfRelocation()
188 Value2 = Writer->getSymbolAddress(B->getSymbol(), Layout); in RecordARMScatteredHalfRelocation()
189 FixedValue -= Writer->getSectionAddress(SB->getFragment()->getParent()); in RecordARMScatteredHalfRelocation()
240 Writer->addRelocation(nullptr, Fragment->getParent(), MRE); in RecordARMScatteredHalfRelocation()
251 Writer->addRelocation(nullptr, Fragment->getParent(), MRE); in RecordARMScatteredHalfRelocation()
254 void ARMMachObjectWriter::RecordARMScatteredRelocation(MachObjectWriter *Writer, in RecordARMScatteredRelocation() argument
273 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMScatteredRelocation()
285 uint32_t Value = Writer->getSymbolAddress(*A, Layout); in RecordARMScatteredRelocation()
286 uint64_t SecAddr = Writer->getSectionAddress(A->getFragment()->getParent()); in RecordARMScatteredRelocation()
303 Value2 = Writer->getSymbolAddress(B->getSymbol(), Layout); in RecordARMScatteredRelocation()
304 FixedValue -= Writer->getSectionAddress(SB->getFragment()->getParent()); in RecordARMScatteredRelocation()
317 Writer->addRelocation(nullptr, Fragment->getParent(), MRE); in RecordARMScatteredRelocation()
327 Writer->addRelocation(nullptr, Fragment->getParent(), MRE); in RecordARMScatteredRelocation()
330 bool ARMMachObjectWriter::requiresExternRelocation(MachObjectWriter *Writer, in requiresExternRelocation() argument
337 if (Writer->doesSymbolRequireExternRelocation(S)) in requiresExternRelocation()
367 Value += Writer->getSectionAddress(&S.getSection()); in requiresExternRelocation()
368 Value -= Writer->getSectionAddress(Fragment.getParent()); in requiresExternRelocation()
376 void ARMMachObjectWriter::recordRelocation(MachObjectWriter *Writer, in recordRelocation() argument
382 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordRelocation()
400 return RecordARMScatteredHalfRelocation(Writer, Asm, Layout, Fragment, in recordRelocation()
402 return RecordARMScatteredRelocation(Writer, Asm, Layout, Fragment, Fixup, in recordRelocation()
420 if (Offset && A && !Writer->doesSymbolRequireExternRelocation(*A) && in recordRelocation()
422 return RecordARMScatteredRelocation(Writer, Asm, Layout, Fragment, Fixup, in recordRelocation()
441 Res, Layout, Writer->getSectionAddressMap())) { in recordRelocation()
448 if (requiresExternRelocation(Writer, Asm, *Fragment, RelocType, *A, in recordRelocation()
461 FixedValue += Writer->getSectionAddress(&Sec); in recordRelocation()
464 FixedValue -= Writer->getSectionAddress(Fragment->getParent()); in recordRelocation()
501 Writer->addRelocation(nullptr, Fragment->getParent(), MREPair); in recordRelocation()
504 Writer->addRelocation(RelSymbol, Fragment->getParent(), MRE); in recordRelocation()