Lines Matching refs:Fixup

202 const char *ARMAsmBackend::reasonForFixupRelaxation(const MCFixup &Fixup,  in reasonForFixupRelaxation()  argument
204 switch ((unsigned)Fixup.getKind()) { in reasonForFixupRelaxation()
255 bool ARMAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, in fixupNeedsRelaxation() argument
258 return reasonForFixupRelaxation(Fixup, Value); in fixupNeedsRelaxation()
359 unsigned ARMAsmBackend::adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument
363 unsigned Kind = Fixup.getKind(); in adjustFixupValue()
416 Ctx->reportError(Fixup.getLoc(), "out of range pc-relative fixup value"); in adjustFixupValue()
437 Ctx->reportError(Fixup.getLoc(), "out of range pc-relative fixup value"); in adjustFixupValue()
468 dyn_cast<MCSymbolRefExpr>(Fixup.getValue())) in adjustFixupValue()
545 Ctx->reportError(Fixup.getLoc(), "misaligned ARM call destination"); in adjustFixupValue()
551 dyn_cast<MCSymbolRefExpr>(Fixup.getValue())) in adjustFixupValue()
572 const char *FixupDiagnostic = reasonForFixupRelaxation(Fixup, Value); in adjustFixupValue()
574 Ctx->reportError(Fixup.getLoc(), FixupDiagnostic); in adjustFixupValue()
590 const char *FixupDiagnostic = reasonForFixupRelaxation(Fixup, Value); in adjustFixupValue()
592 Ctx->reportError(Fixup.getLoc(), FixupDiagnostic); in adjustFixupValue()
600 const char *FixupDiagnostic = reasonForFixupRelaxation(Fixup, Value); in adjustFixupValue()
602 Ctx->reportError(Fixup.getLoc(), FixupDiagnostic); in adjustFixupValue()
617 Ctx->reportError(Fixup.getLoc(), "out of range pc-relative fixup value"); in adjustFixupValue()
638 Ctx->reportError(Fixup.getLoc(), "out of range pc-relative fixup value"); in adjustFixupValue()
664 Ctx->reportError(Fixup.getLoc(), "invalid value for this fixup"); in adjustFixupValue()
669 Ctx->reportError(Fixup.getLoc(), "out of range pc-relative fixup value"); in adjustFixupValue()
684 Ctx->reportError(Fixup.getLoc(), "out of range immediate fixup value"); in adjustFixupValue()
693 const MCFixup &Fixup, in processFixupValue() argument
701 if ((unsigned)Fixup.getKind() != ARM::fixup_arm_ldst_pcrel_12 && in processFixupValue()
702 (unsigned)Fixup.getKind() != ARM::fixup_t2_ldst_pcrel_12 && in processFixupValue()
703 (unsigned)Fixup.getKind() != ARM::fixup_arm_adr_pcrel_12 && in processFixupValue()
704 (unsigned)Fixup.getKind() != ARM::fixup_thumb_adr_pcrel_10 && in processFixupValue()
705 (unsigned)Fixup.getKind() != ARM::fixup_t2_adr_pcrel_12 && in processFixupValue()
706 (unsigned)Fixup.getKind() != ARM::fixup_arm_thumb_cp) { in processFixupValue()
712 if (IsResolved && (unsigned)Fixup.getKind() == ARM::fixup_arm_thumb_bl) { in processFixupValue()
726 if (A && ((unsigned)Fixup.getKind() == ARM::fixup_arm_thumb_blx || in processFixupValue()
727 (unsigned)Fixup.getKind() == ARM::fixup_arm_blx || in processFixupValue()
728 (unsigned)Fixup.getKind() == ARM::fixup_arm_uncondbl || in processFixupValue()
729 (unsigned)Fixup.getKind() == ARM::fixup_arm_condbl)) in processFixupValue()
735 (void)adjustFixupValue(Fixup, Value, false, &Asm.getContext(), in processFixupValue()
839 void ARMAsmBackend::applyFixup(const MCFixup &Fixup, char *Data, in applyFixup() argument
842 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup()
844 adjustFixupValue(Fixup, Value, IsPCRel, nullptr, IsLittleEndian, true); in applyFixup()
848 unsigned Offset = Fixup.getOffset(); in applyFixup()
854 FullSizeBytes = getFixupKindContainerSizeBytes(Fixup.getKind()); in applyFixup()