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,
60 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, in recordRelocation() argument
64 if (Writer->is64Bit()) in recordRelocation()
65 RecordX86_64Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in recordRelocation()
68 RecordX86Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in recordRelocation()
104 MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, in RecordX86_64Relocation() argument
107 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86_64Relocation()
115 Writer->getFragmentAddress(Fragment, Layout) + Fixup.getOffset(); in RecordX86_64Relocation()
148 A = &Writer->findAliasedSymbol(*A); in RecordX86_64Relocation()
153 B = &Writer->findAliasedSymbol(*B); in RecordX86_64Relocation()
197 Value += Writer->getSymbolAddress(*A, Layout) - in RecordX86_64Relocation()
198 (!A_Base ? 0 : Writer->getSymbolAddress(*A_Base, Layout)); in RecordX86_64Relocation()
199 Value -= Writer->getSymbolAddress(*B, Layout) - in RecordX86_64Relocation()
200 (!B_Base ? 0 : Writer->getSymbolAddress(*B_Base, Layout)); in RecordX86_64Relocation()
210 Writer->addRelocation(A_Base, Fragment->getParent(), MRE); in RecordX86_64Relocation()
248 Value += Writer->getSymbolAddress(*Symbol, Layout); in RecordX86_64Relocation()
256 Writer->getSectionAddressMap()); in RecordX86_64Relocation()
362 Writer->addRelocation(RelSymbol, Fragment->getParent(), MRE); in RecordX86_64Relocation()
365 bool X86MachObjectWriter::recordScatteredRelocation(MachObjectWriter *Writer, in recordScatteredRelocation() argument
375 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordScatteredRelocation()
389 uint32_t Value = Writer->getSymbolAddress(*A, Layout); in recordScatteredRelocation()
390 uint64_t SecAddr = Writer->getSectionAddress(A->getFragment()->getParent()); in recordScatteredRelocation()
412 Value2 = Writer->getSymbolAddress(*SB, Layout); in recordScatteredRelocation()
413 FixedValue -= Writer->getSectionAddress(SB->getFragment()->getParent()); in recordScatteredRelocation()
439 Writer->addRelocation(nullptr, Fragment->getParent(), MRE); in recordScatteredRelocation()
461 Writer->addRelocation(nullptr, Fragment->getParent(), MRE); in recordScatteredRelocation()
465 void X86MachObjectWriter::recordTLVPRelocation(MachObjectWriter *Writer, in recordTLVPRelocation() argument
487 Writer->getFragmentAddress(Fragment, Layout) + Fixup.getOffset(); in recordTLVPRelocation()
490 Writer->getSymbolAddress(SymB->getSymbol(), Layout) + in recordTLVPRelocation()
502 Writer->addRelocation(&SymA->getSymbol(), Fragment->getParent(), MRE); in recordTLVPRelocation()
505 void X86MachObjectWriter::RecordX86Relocation(MachObjectWriter *Writer, in RecordX86Relocation() argument
512 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86Relocation()
518 recordTLVPRelocation(Writer, Asm, Layout, Fragment, Fixup, Target, in RecordX86Relocation()
527 recordScatteredRelocation(Writer, Asm, Layout, Fragment, Fixup, in RecordX86Relocation()
545 if (Offset && A && !Writer->doesSymbolRequireExternRelocation(*A) && in RecordX86Relocation()
546 recordScatteredRelocation(Writer, Asm, Layout, Fragment, Fixup, Target, in RecordX86Relocation()
567 Res, Layout, Writer->getSectionAddressMap())) { in RecordX86Relocation()
574 if (Writer->doesSymbolRequireExternRelocation(*A)) { in RecordX86Relocation()
585 FixedValue += Writer->getSectionAddress(&Sec); in RecordX86Relocation()
588 FixedValue -= Writer->getSectionAddress(Fragment->getParent()); in RecordX86Relocation()
598 Writer->addRelocation(RelSymbol, Fragment->getParent(), MRE); in RecordX86Relocation()