diff options
author | Fangrui Song <i@maskray.me> | 2025-05-23 20:55:42 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2025-05-23 20:55:42 -0700 |
commit | f0ff2bea75f45a72143ac7fcd16a1199eb5ebf6e (patch) | |
tree | 40260149a3bdd034419a2f334a8421193f66c877 /llvm/lib/MC/MCAssembler.cpp | |
parent | 89909d826a3ea7f8dd2f99e082064a684257da85 (diff) | |
download | llvm-f0ff2bea75f45a72143ac7fcd16a1199eb5ebf6e.zip llvm-f0ff2bea75f45a72143ac7fcd16a1199eb5ebf6e.tar.gz llvm-f0ff2bea75f45a72143ac7fcd16a1199eb5ebf6e.tar.bz2 |
MCAsmBackend: Remove MCSubtargetInfo argument
After #141311 removed the MCSubtargetInfo argument from
shouldForceRelocation, addReloc does not need this argument, either.
In a rare scenario that the information is needed, the target should
check the MCFragment subclass and get it from
MCDataFragment/MCRelaxableFragment.
Diffstat (limited to 'llvm/lib/MC/MCAssembler.cpp')
-rw-r--r-- | llvm/lib/MC/MCAssembler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp index 96225b0..f710088 100644 --- a/llvm/lib/MC/MCAssembler.cpp +++ b/llvm/lib/MC/MCAssembler.cpp @@ -199,7 +199,7 @@ bool MCAssembler::evaluateFixup(const MCFixup &Fixup, const MCFragment *DF, if (IsResolved && mc::isRelocRelocation(Fixup.getKind())) IsResolved = false; IsResolved = getBackend().addReloc(const_cast<MCAssembler &>(*this), *DF, - Fixup, Target, Value, IsResolved, STI); + Fixup, Target, Value, IsResolved); getBackend().applyFixup(*this, Fixup, Target, Contents, Value, IsResolved, STI); return true; |