Lines Matching refs:Writer

28   bool RecordScatteredRelocation(MachObjectWriter *Writer,
36 void RecordTLVPRelocation(MachObjectWriter *Writer,
44 void RecordX86Relocation(MachObjectWriter *Writer,
51 void RecordX86_64Relocation(MachObjectWriter *Writer, MCAssembler &Asm,
62 void RecordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, in RecordRelocation() argument
66 if (Writer->is64Bit()) in RecordRelocation()
67 RecordX86_64Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in RecordRelocation()
70 RecordX86Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in RecordRelocation()
100 MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, in RecordX86_64Relocation() argument
103 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86_64Relocation()
111 Writer->getFragmentAddress(Fragment, Layout) + Fixup.getOffset(); in RecordX86_64Relocation()
187 Value += Writer->getSymbolAddress(&A_SD, Layout) - in RecordX86_64Relocation()
188 (!A_Base ? 0 : Writer->getSymbolAddress(A_Base, Layout)); in RecordX86_64Relocation()
189 Value -= Writer->getSymbolAddress(&B_SD, Layout) - in RecordX86_64Relocation()
190 (!B_Base ? 0 : Writer->getSymbolAddress(B_Base, Layout)); in RecordX86_64Relocation()
200 Writer->addRelocation(A_Base, Fragment->getParent(), MRE); in RecordX86_64Relocation()
239 Value += Writer->getSymbolAddress(&SD, Layout); in RecordX86_64Relocation()
247 Writer->getSectionAddressMap()); in RecordX86_64Relocation()
339 Writer->addRelocation(RelSymbol, Fragment->getParent(), MRE); in RecordX86_64Relocation()
342 bool X86MachObjectWriter::RecordScatteredRelocation(MachObjectWriter *Writer, in RecordScatteredRelocation() argument
352 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordScatteredRelocation()
364 uint32_t Value = Writer->getSymbolAddress(A_SD, Layout); in RecordScatteredRelocation()
365 uint64_t SecAddr = Writer->getSectionAddress(A_SD->getFragment()->getParent()); in RecordScatteredRelocation()
384 Value2 = Writer->getSymbolAddress(B_SD, Layout); in RecordScatteredRelocation()
385 FixedValue -= Writer->getSectionAddress(B_SD->getFragment()->getParent()); in RecordScatteredRelocation()
411 Writer->addRelocation(nullptr, Fragment->getParent(), MRE); in RecordScatteredRelocation()
433 Writer->addRelocation(nullptr, Fragment->getParent(), MRE); in RecordScatteredRelocation()
437 void X86MachObjectWriter::RecordTLVPRelocation(MachObjectWriter *Writer, in RecordTLVPRelocation() argument
462 Writer->getFragmentAddress(Fragment, Layout) + Fixup.getOffset(); in RecordTLVPRelocation()
466 FixedValue = (FixupAddress - Writer->getSymbolAddress(SD_B, Layout) + in RecordTLVPRelocation()
478 Writer->addRelocation(SD_A, Fragment->getParent(), MRE); in RecordTLVPRelocation()
481 void X86MachObjectWriter::RecordX86Relocation(MachObjectWriter *Writer, in RecordX86Relocation() argument
488 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86Relocation()
494 RecordTLVPRelocation(Writer, Asm, Layout, Fragment, Fixup, Target, in RecordX86Relocation()
503 RecordScatteredRelocation(Writer, Asm, Layout, Fragment, Fixup, in RecordX86Relocation()
521 if (Offset && SD && !Writer->doesSymbolRequireExternRelocation(SD) && in RecordX86Relocation()
522 RecordScatteredRelocation(Writer, Asm, Layout, Fragment, Fixup, in RecordX86Relocation()
543 Res, Layout, Writer->getSectionAddressMap())) { in RecordX86Relocation()
550 if (Writer->doesSymbolRequireExternRelocation(SD)) { in RecordX86Relocation()
562 FixedValue += Writer->getSectionAddress(&SymSD); in RecordX86Relocation()
565 FixedValue -= Writer->getSectionAddress(Fragment->getParent()); in RecordX86Relocation()
575 Writer->addRelocation(RelSymbol, Fragment->getParent(), MRE); in RecordX86Relocation()