@@ -618,9 +618,9 @@ bool RISCVAsmBackend::evaluateTargetFixup(const MCAssembler &Asm,
618618 isPCRelFixupResolved (Asm, AUIPCTarget.getAddSym (), *AUIPCDF);
619619}
620620
621- bool RISCVAsmBackend::addReloc (MCAssembler &Asm , const MCFragment &F ,
622- const MCFixup &Fixup, const MCValue &Target ,
623- uint64_t &FixedValue, bool IsResolved) {
621+ bool RISCVAsmBackend::addReloc (const MCFragment &F , const MCFixup &Fixup ,
622+ const MCValue &Target, uint64_t &FixedValue ,
623+ bool IsResolved) {
624624 uint64_t FixedValueA, FixedValueB;
625625 if (Target.getSubSym ()) {
626626 assert (Target.getSpecifier () == 0 &&
@@ -654,8 +654,8 @@ bool RISCVAsmBackend::addReloc(MCAssembler &Asm, const MCFragment &F,
654654 MCValue B = MCValue::get (Target.getSubSym ());
655655 auto FA = MCFixup::create (Fixup.getOffset (), nullptr , TA);
656656 auto FB = MCFixup::create (Fixup.getOffset (), nullptr , TB);
657- Asm. getWriter ().recordRelocation (Asm, &F, FA, A, FixedValueA);
658- Asm. getWriter ().recordRelocation (Asm, &F, FB, B, FixedValueB);
657+ Asm-> getWriter ().recordRelocation (* Asm, &F, FA, A, FixedValueA);
658+ Asm-> getWriter ().recordRelocation (* Asm, &F, FB, B, FixedValueB);
659659 FixedValue = FixedValueA - FixedValueB;
660660 return false ;
661661 }
@@ -666,14 +666,13 @@ bool RISCVAsmBackend::addReloc(MCAssembler &Asm, const MCFragment &F,
666666 IsResolved = false ;
667667 if (IsResolved &&
668668 (getFixupKindInfo (Fixup.getKind ()).Flags & MCFixupKindInfo::FKF_IsPCRel))
669- IsResolved = isPCRelFixupResolved (Asm, Target.getAddSym (), F);
670- IsResolved =
671- MCAsmBackend::addReloc (Asm, F, Fixup, Target, FixedValue, IsResolved);
669+ IsResolved = isPCRelFixupResolved (*Asm, Target.getAddSym (), F);
670+ IsResolved = MCAsmBackend::addReloc (F, Fixup, Target, FixedValue, IsResolved);
672671
673672 if (Fixup.isLinkerRelaxable ()) {
674673 auto FA = MCFixup::create (Fixup.getOffset (), nullptr , ELF::R_RISCV_RELAX);
675- Asm. getWriter ().recordRelocation (Asm, &F, FA, MCValue::get (nullptr ),
676- FixedValueA);
674+ Asm-> getWriter ().recordRelocation (* Asm, &F, FA, MCValue::get (nullptr ),
675+ FixedValueA);
677676 }
678677
679678 return false ;
0 commit comments