Lines Matching refs:Writer
27 bool recordScatteredRelocation(MachObjectWriter *Writer,
35 void recordTLVPRelocation(MachObjectWriter *Writer,
43 void RecordX86Relocation(MachObjectWriter *Writer,
50 void RecordX86_64Relocation(MachObjectWriter *Writer, MCAssembler &Asm,
59 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, in recordRelocation() argument
63 if (Writer->is64Bit()) in recordRelocation()
64 RecordX86_64Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in recordRelocation()
67 RecordX86Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in recordRelocation()
103 MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, in RecordX86_64Relocation() argument
106 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86_64Relocation()
114 Writer->getFragmentAddress(Fragment, Layout) + Fixup.getOffset(); in RecordX86_64Relocation()
147 A = &Writer->findAliasedSymbol(*A); in RecordX86_64Relocation()
152 B = &Writer->findAliasedSymbol(*B); in RecordX86_64Relocation()
196 Value += Writer->getSymbolAddress(*A, Layout) - in RecordX86_64Relocation()
197 (!A_Base ? 0 : Writer->getSymbolAddress(*A_Base, Layout)); in RecordX86_64Relocation()
198 Value -= Writer->getSymbolAddress(*B, Layout) - in RecordX86_64Relocation()
199 (!B_Base ? 0 : Writer->getSymbolAddress(*B_Base, Layout)); in RecordX86_64Relocation()
209 Writer->addRelocation(A_Base, Fragment->getParent(), MRE); in RecordX86_64Relocation()
247 Value += Writer->getSymbolAddress(*Symbol, Layout); in RecordX86_64Relocation()
255 Writer->getSectionAddressMap()); in RecordX86_64Relocation()
360 Writer->addRelocation(RelSymbol, Fragment->getParent(), MRE); in RecordX86_64Relocation()
363 bool X86MachObjectWriter::recordScatteredRelocation(MachObjectWriter *Writer, in recordScatteredRelocation() argument
373 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordScatteredRelocation()
387 uint32_t Value = Writer->getSymbolAddress(*A, Layout); in recordScatteredRelocation()
388 uint64_t SecAddr = Writer->getSectionAddress(A->getFragment()->getParent()); in recordScatteredRelocation()
410 Value2 = Writer->getSymbolAddress(*SB, Layout); in recordScatteredRelocation()
411 FixedValue -= Writer->getSectionAddress(SB->getFragment()->getParent()); in recordScatteredRelocation()
437 Writer->addRelocation(nullptr, Fragment->getParent(), MRE); in recordScatteredRelocation()
459 Writer->addRelocation(nullptr, Fragment->getParent(), MRE); in recordScatteredRelocation()
463 void X86MachObjectWriter::recordTLVPRelocation(MachObjectWriter *Writer, in recordTLVPRelocation() argument
485 Writer->getFragmentAddress(Fragment, Layout) + Fixup.getOffset(); in recordTLVPRelocation()
488 Writer->getSymbolAddress(SymB->getSymbol(), Layout) + in recordTLVPRelocation()
500 Writer->addRelocation(&SymA->getSymbol(), Fragment->getParent(), MRE); in recordTLVPRelocation()
503 void X86MachObjectWriter::RecordX86Relocation(MachObjectWriter *Writer, in RecordX86Relocation() argument
510 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86Relocation()
516 recordTLVPRelocation(Writer, Asm, Layout, Fragment, Fixup, Target, in RecordX86Relocation()
525 recordScatteredRelocation(Writer, Asm, Layout, Fragment, Fixup, in RecordX86Relocation()
544 if (Offset && A && !Writer->doesSymbolRequireExternRelocation(*A) && in RecordX86Relocation()
545 recordScatteredRelocation(Writer, Asm, Layout, Fragment, Fixup, Target, in RecordX86Relocation()
568 Res, Layout, Writer->getSectionAddressMap())) { in RecordX86Relocation()
575 if (Writer->doesSymbolRequireExternRelocation(*A)) { in RecordX86Relocation()
586 FixedValue += Writer->getSectionAddress(&Sec); in RecordX86Relocation()
589 FixedValue -= Writer->getSectionAddress(Fragment->getParent()); in RecordX86Relocation()
599 Writer->addRelocation(RelSymbol, Fragment->getParent(), MRE); in RecordX86Relocation()