Lines Matching refs:Asm
28 const MCAssembler &Asm,
35 const MCAssembler &Asm,
42 const MCAssembler &Asm,
47 void RecordX86_64Relocation(MachObjectWriter *Writer, MCAssembler &Asm,
55 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, in recordRelocation() argument
59 RecordX86_64Relocation(Writer, Asm, Fragment, Fixup, Target, FixedValue); in recordRelocation()
61 RecordX86Relocation(Writer, Asm, Fragment, Fixup, Target, FixedValue); in recordRelocation()
96 MachObjectWriter *Writer, MCAssembler &Asm, const MCFragment *Fragment, in RecordX86_64Relocation() argument
98 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86_64Relocation()
103 uint32_t FixupOffset = Asm.getFragmentOffset(*Fragment) + Fixup.getOffset(); in RecordX86_64Relocation()
105 Writer->getFragmentAddress(Asm, Fragment) + Fixup.getOffset(); in RecordX86_64Relocation()
148 Asm.getContext().reportError(Fixup.getLoc(), in RecordX86_64Relocation()
156 Asm.getContext().reportError( in RecordX86_64Relocation()
172 Asm.getContext().reportError( in RecordX86_64Relocation()
181 Asm.getContext().reportError(Fixup.getLoc(), in RecordX86_64Relocation()
187 Value += Writer->getSymbolAddress(*A, Asm) - in RecordX86_64Relocation()
188 (!A_Base ? 0 : Writer->getSymbolAddress(*A_Base, Asm)); in RecordX86_64Relocation()
189 Value -= Writer->getSymbolAddress(*B, Asm) - in RecordX86_64Relocation()
190 (!B_Base ? 0 : Writer->getSymbolAddress(*B_Base, Asm)); in RecordX86_64Relocation()
233 Value += Asm.getSymbolOffset(*Symbol) - Asm.getSymbolOffset(*RelSymbol); in RecordX86_64Relocation()
237 Value += Writer->getSymbolAddress(*Symbol, Asm); in RecordX86_64Relocation()
245 Value->evaluateAsAbsolute(Res, Asm, Writer->getSectionAddressMap()); in RecordX86_64Relocation()
250 Asm.getContext().reportError(Fixup.getLoc(), in RecordX86_64Relocation()
256 Asm.getContext().reportError( in RecordX86_64Relocation()
276 Asm.getContext().reportError( in RecordX86_64Relocation()
304 Asm.getContext().reportError( in RecordX86_64Relocation()
323 Asm.getContext().reportError( in RecordX86_64Relocation()
327 Asm.getContext().reportError( in RecordX86_64Relocation()
333 Asm.getContext().reportError( in RecordX86_64Relocation()
354 const MCAssembler &Asm, in recordScatteredRelocation() argument
361 uint32_t FixupOffset = Asm.getFragmentOffset(*Fragment) + Fixup.getOffset(); in recordScatteredRelocation()
362 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordScatteredRelocation()
369 Asm.getContext().reportError( in recordScatteredRelocation()
376 uint32_t Value = Writer->getSymbolAddress(*A, Asm); in recordScatteredRelocation()
385 Asm.getContext().reportError( in recordScatteredRelocation()
399 Value2 = Writer->getSymbolAddress(*SB, Asm); in recordScatteredRelocation()
411 Asm.getContext().reportError(Fixup.getLoc(), in recordScatteredRelocation()
453 const MCAssembler &Asm, in recordTLVPRelocation() argument
463 uint32_t Value = Asm.getFragmentOffset(*Fragment) + Fixup.getOffset(); in recordTLVPRelocation()
473 Writer->getFragmentAddress(Asm, Fragment) + Fixup.getOffset(); in recordTLVPRelocation()
476 Writer->getSymbolAddress(SymB->getSymbol(), Asm) + in recordTLVPRelocation()
492 const MCAssembler &Asm, in RecordX86Relocation() argument
497 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86Relocation()
503 recordTLVPRelocation(Writer, Asm, Fragment, Fixup, Target, FixedValue); in RecordX86Relocation()
511 recordScatteredRelocation(Writer, Asm, Fragment, Fixup, Target, Log2Size, in RecordX86Relocation()
531 recordScatteredRelocation(Writer, Asm, Fragment, Fixup, Target, Log2Size, in RecordX86Relocation()
536 uint32_t FixupOffset = Asm.getFragmentOffset(*Fragment) + Fixup.getOffset(); in RecordX86Relocation()
554 Res, Asm, Writer->getSectionAddressMap())) { in RecordX86Relocation()
567 FixedValue -= Asm.getSymbolOffset(*A); in RecordX86Relocation()