Home | History | Annotate | Download | only in MCTargetDesc

Lines Matching refs:Writer

1 //===-- ARMMachObjectWriter.cpp - ARM Mach Object Writer ------------------===//
29 void RecordARMScatteredRelocation(MachObjectWriter *Writer,
38 void RecordARMScatteredHalfRelocation(MachObjectWriter *Writer,
45 bool requiresExternRelocation(MachObjectWriter *Writer,
54 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm,
139 RecordARMScatteredHalfRelocation(MachObjectWriter *Writer,
147 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind());
160 uint32_t Value = Writer->getSymbolAddress(*A, Layout);
162 uint64_t SecAddr = Writer->getSectionAddress(A->getFragment()->getParent());
177 Value2 = Writer->getSymbolAddress(B->getSymbol(), Layout);
178 FixedValue -= Writer->getSectionAddress(SB->getFragment()->getParent());
229 Writer->addRelocation(nullptr, Fragment->getParent(), MRE);
240 Writer->addRelocation(nullptr, Fragment->getParent(), MRE);
243 void ARMMachObjectWriter::RecordARMScatteredRelocation(MachObjectWriter *Writer,
253 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind());
265 uint32_t Value = Writer->getSymbolAddress(*A, Layout);
266 uint64_t SecAddr = Writer->getSectionAddress(A->getFragment()->getParent());
283 Value2 = Writer->getSymbolAddress(B->getSymbol(), Layout);
284 FixedValue -= Writer->getSectionAddress(SB->getFragment()->getParent());
297 Writer->addRelocation(nullptr, Fragment->getParent(), MRE);
307 Writer->addRelocation(nullptr, Fragment->getParent(), MRE);
310 bool ARMMachObjectWriter::requiresExternRelocation(MachObjectWriter *Writer,
317 if (Writer->doesSymbolRequireExternRelocation(S))
339 Value += Writer->getSectionAddress(&S.getSection());
340 Value -= Writer->getSectionAddress(Fragment.getParent());
348 void ARMMachObjectWriter::recordRelocation(MachObjectWriter *Writer,
354 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind());
372 return RecordARMScatteredHalfRelocation(Writer, Asm, Layout, Fragment,
374 return RecordARMScatteredRelocation(Writer, Asm, Layout, Fragment, Fixup,
392 if (Offset && A && !Writer->doesSymbolRequireExternRelocation(*A) &&
394 return RecordARMScatteredRelocation(Writer, Asm, Layout, Fragment, Fixup,
413 Res, Layout, Writer->getSectionAddressMap())) {
420 if (requiresExternRelocation(Writer, Asm, *Fragment, RelocType, *A,
433 FixedValue += Writer->getSectionAddress(&Sec);
436 FixedValue -= Writer->getSectionAddress(Fragment->getParent());
473 Writer->addRelocation(nullptr, Fragment->getParent(), MREPair);
476 Writer->addRelocation(RelSymbol, Fragment->getParent(), MRE);