Lines Matching refs:Writer
29 void RecordARMScatteredRelocation(MachObjectWriter *Writer,
38 void RecordARMScatteredHalfRelocation(MachObjectWriter *Writer,
45 bool requiresExternRelocation(MachObjectWriter *Writer,
57 void RecordRelocation(MachObjectWriter *Writer, MCAssembler &Asm,
142 RecordARMScatteredHalfRelocation(MachObjectWriter *Writer, in RecordARMScatteredHalfRelocation() argument
150 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMScatteredHalfRelocation()
162 uint32_t Value = Writer->getSymbolAddress(A_SD, Layout); in RecordARMScatteredHalfRelocation()
165 Writer->getSectionAddress(A_SD->getFragment()->getParent()); in RecordARMScatteredHalfRelocation()
178 Value2 = Writer->getSymbolAddress(B_SD, Layout); in RecordARMScatteredHalfRelocation()
179 FixedValue -= Writer->getSectionAddress(B_SD->getFragment()->getParent()); in RecordARMScatteredHalfRelocation()
230 Writer->addRelocation(nullptr, Fragment->getParent(), MRE); in RecordARMScatteredHalfRelocation()
241 Writer->addRelocation(nullptr, Fragment->getParent(), MRE); in RecordARMScatteredHalfRelocation()
244 void ARMMachObjectWriter::RecordARMScatteredRelocation(MachObjectWriter *Writer, in RecordARMScatteredRelocation() argument
254 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMScatteredRelocation()
265 uint32_t Value = Writer->getSymbolAddress(A_SD, Layout); in RecordARMScatteredRelocation()
266 uint64_t SecAddr = Writer->getSectionAddress(A_SD->getFragment()->getParent()); in RecordARMScatteredRelocation()
281 Value2 = Writer->getSymbolAddress(B_SD, Layout); in RecordARMScatteredRelocation()
282 FixedValue -= Writer->getSectionAddress(B_SD->getFragment()->getParent()); in RecordARMScatteredRelocation()
295 Writer->addRelocation(nullptr, Fragment->getParent(), MRE); in RecordARMScatteredRelocation()
305 Writer->addRelocation(nullptr, Fragment->getParent(), MRE); in RecordARMScatteredRelocation()
308 bool ARMMachObjectWriter::requiresExternRelocation(MachObjectWriter *Writer, in requiresExternRelocation() argument
315 if (Writer->doesSymbolRequireExternRelocation(SD)) in requiresExternRelocation()
339 Value += Writer->getSectionAddress(&SymSD); in requiresExternRelocation()
340 Value -= Writer->getSectionAddress(Fragment.getParent()); in requiresExternRelocation()
348 void ARMMachObjectWriter::RecordRelocation(MachObjectWriter *Writer, in RecordRelocation() argument
354 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordRelocation()
370 return RecordARMScatteredHalfRelocation(Writer, Asm, Layout, Fragment, in RecordRelocation()
372 return RecordARMScatteredRelocation(Writer, Asm, Layout, Fragment, Fixup, in RecordRelocation()
390 if (Offset && SD && !Writer->doesSymbolRequireExternRelocation(SD)) in RecordRelocation()
391 return RecordARMScatteredRelocation(Writer, Asm, Layout, Fragment, Fixup, in RecordRelocation()
410 Res, Layout, Writer->getSectionAddressMap())) { in RecordRelocation()
417 if (requiresExternRelocation(Writer, Asm, *Fragment, RelocType, SD, in RecordRelocation()
431 FixedValue += Writer->getSectionAddress(&SymSD); in RecordRelocation()
434 FixedValue -= Writer->getSectionAddress(Fragment->getParent()); in RecordRelocation()
469 Writer->addRelocation(nullptr, Fragment->getParent(), MREPair); in RecordRelocation()
472 Writer->addRelocation(RelSymbol, Fragment->getParent(), MRE); in RecordRelocation()