aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCAssembler.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2025-05-23 20:21:15 -0700
committerGitHub <noreply@github.com>2025-05-23 20:21:15 -0700
commitccffa1d3fe120f4bae66c99ab40ab4024a4df68f (patch)
treed480a92cde049d1f05177ca4fcb0554de251126c /llvm/lib/MC/MCAssembler.cpp
parentdddcbc26d6bcbc3361f7c56e8168ddd76d0dfc0f (diff)
downloadllvm-ccffa1d3fe120f4bae66c99ab40ab4024a4df68f.zip
llvm-ccffa1d3fe120f4bae66c99ab40ab4024a4df68f.tar.gz
llvm-ccffa1d3fe120f4bae66c99ab40ab4024a4df68f.tar.bz2
[MC] Don't pass MCSubtargetInfo down to shouldForceRelocation and evaluateTargetFixup (#141311)
This reverts the code change in commit e87f33d9ce785668223c3bcc4e06956985cccda1 (#73721) but keeps its test. There have been many changes to lib/MC and AsmBackend.cpp files, so this is not a pure revert. #73721, a workaround to generate necessary relocations in mixed non-relax/relax code, is no longer necessary after #140692 fixed the root issue (whether two locations are separated by a fragment with indeterminate size due to linker relaxation).
Diffstat (limited to 'llvm/lib/MC/MCAssembler.cpp')
-rw-r--r--llvm/lib/MC/MCAssembler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp
index ec39d3b..96225b0 100644
--- a/llvm/lib/MC/MCAssembler.cpp
+++ b/llvm/lib/MC/MCAssembler.cpp
@@ -160,7 +160,7 @@ bool MCAssembler::evaluateFixup(const MCFixup &Fixup, const MCFragment *DF,
unsigned FixupFlags = getBackend().getFixupKindInfo(Fixup.getKind()).Flags;
if (FixupFlags & MCFixupKindInfo::FKF_IsTarget) {
IsResolved =
- getBackend().evaluateTargetFixup(*this, Fixup, DF, Target, STI, Value);
+ getBackend().evaluateTargetFixup(*this, Fixup, DF, Target, Value);
} else {
const MCSymbol *Add = Target.getAddSym();
const MCSymbol *Sub = Target.getSubSym();