@@ -377,7 +377,7 @@ bool AVRAsmBackend::addReloc(MCAssembler &Asm, const MCFragment &F,
377
377
if (IsResolved) {
378
378
auto TargetVal = MCValue::get (Target.getAddSym (), Target.getSubSym (),
379
379
FixedValue, Target.getSpecifier ());
380
- if (forceRelocation (Asm, Fixup, TargetVal, STI ))
380
+ if (forceRelocation (Asm, F, Fixup, TargetVal ))
381
381
IsResolved = false ;
382
382
}
383
383
if (!IsResolved)
@@ -515,9 +515,9 @@ bool AVRAsmBackend::writeNopData(raw_ostream &OS, uint64_t Count,
515
515
return true ;
516
516
}
517
517
518
- bool AVRAsmBackend::forceRelocation (const MCAssembler &Asm,
519
- const MCFixup &Fixup, const MCValue &Target,
520
- const MCSubtargetInfo *STI ) {
518
+ bool AVRAsmBackend::forceRelocation (const MCAssembler &Asm, const MCFragment &F,
519
+ const MCFixup &Fixup,
520
+ const MCValue &Target ) {
521
521
switch ((unsigned )Fixup.getKind ()) {
522
522
default :
523
523
return false ;
@@ -532,7 +532,8 @@ bool AVRAsmBackend::forceRelocation(const MCAssembler &Asm,
532
532
// Note that trying to actually link that relocation *would* fail, but the
533
533
// hopes are that the module we're currently compiling won't be actually
534
534
// linked to the final binary.
535
- return !adjust::adjustRelativeBranch (Size, Fixup, Offset, STI);
535
+ return !adjust::adjustRelativeBranch (Size, Fixup, Offset,
536
+ Asm.getContext ().getSubtargetInfo ());
536
537
}
537
538
538
539
case AVR::fixup_call:
0 commit comments