Lines Matching refs:Writer
30 void RecordARMScatteredRelocation(MachObjectWriter *Writer,
39 void RecordARMScatteredHalfRelocation(MachObjectWriter *Writer,
46 bool requiresExternRelocation(MachObjectWriter *Writer,
55 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm,
140 RecordARMScatteredHalfRelocation(MachObjectWriter *Writer, in RecordARMScatteredHalfRelocation() argument
157 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMScatteredHalfRelocation()
170 uint32_t Value = Writer->getSymbolAddress(*A, Layout); in RecordARMScatteredHalfRelocation()
172 uint64_t SecAddr = Writer->getSectionAddress(A->getFragment()->getParent()); in RecordARMScatteredHalfRelocation()
187 Value2 = Writer->getSymbolAddress(B->getSymbol(), Layout); in RecordARMScatteredHalfRelocation()
188 FixedValue -= Writer->getSectionAddress(SB->getFragment()->getParent()); in RecordARMScatteredHalfRelocation()
239 Writer->addRelocation(nullptr, Fragment->getParent(), MRE); in RecordARMScatteredHalfRelocation()
250 Writer->addRelocation(nullptr, Fragment->getParent(), MRE); in RecordARMScatteredHalfRelocation()
253 void ARMMachObjectWriter::RecordARMScatteredRelocation(MachObjectWriter *Writer, in RecordARMScatteredRelocation() argument
272 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMScatteredRelocation()
284 uint32_t Value = Writer->getSymbolAddress(*A, Layout); in RecordARMScatteredRelocation()
285 uint64_t SecAddr = Writer->getSectionAddress(A->getFragment()->getParent()); in RecordARMScatteredRelocation()
302 Value2 = Writer->getSymbolAddress(B->getSymbol(), Layout); in RecordARMScatteredRelocation()
303 FixedValue -= Writer->getSectionAddress(SB->getFragment()->getParent()); in RecordARMScatteredRelocation()
316 Writer->addRelocation(nullptr, Fragment->getParent(), MRE); in RecordARMScatteredRelocation()
326 Writer->addRelocation(nullptr, Fragment->getParent(), MRE); in RecordARMScatteredRelocation()
329 bool ARMMachObjectWriter::requiresExternRelocation(MachObjectWriter *Writer, in requiresExternRelocation() argument
336 if (Writer->doesSymbolRequireExternRelocation(S)) in requiresExternRelocation()
366 Value += Writer->getSectionAddress(&S.getSection()); in requiresExternRelocation()
367 Value -= Writer->getSectionAddress(Fragment.getParent()); in requiresExternRelocation()
375 void ARMMachObjectWriter::recordRelocation(MachObjectWriter *Writer, in recordRelocation() argument
381 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordRelocation()
399 return RecordARMScatteredHalfRelocation(Writer, Asm, Layout, Fragment, in recordRelocation()
401 return RecordARMScatteredRelocation(Writer, Asm, Layout, Fragment, Fixup, in recordRelocation()
419 if (Offset && A && !Writer->doesSymbolRequireExternRelocation(*A) && in recordRelocation()
421 return RecordARMScatteredRelocation(Writer, Asm, Layout, Fragment, Fixup, in recordRelocation()
440 Res, Layout, Writer->getSectionAddressMap())) { in recordRelocation()
447 if (requiresExternRelocation(Writer, Asm, *Fragment, RelocType, *A, in recordRelocation()
460 FixedValue += Writer->getSectionAddress(&Sec); in recordRelocation()
463 FixedValue -= Writer->getSectionAddress(Fragment->getParent()); in recordRelocation()
500 Writer->addRelocation(nullptr, Fragment->getParent(), MREPair); in recordRelocation()
503 Writer->addRelocation(RelSymbol, Fragment->getParent(), MRE); in recordRelocation()