aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/ELFObjectWriter.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2025-05-24 21:48:10 -0700
committerFangrui Song <i@maskray.me>2025-05-24 21:48:11 -0700
commitfe32806d67eef72ff406dbcdc6a28d882a00e3a3 (patch)
tree5916d958c9abf86b7232a1a85822c8013d29a153 /llvm/lib/MC/ELFObjectWriter.cpp
parente9339481e5b75e99c295f0faf15091a70630b3d8 (diff)
downloadllvm-fe32806d67eef72ff406dbcdc6a28d882a00e3a3.zip
llvm-fe32806d67eef72ff406dbcdc6a28d882a00e3a3.tar.gz
llvm-fe32806d67eef72ff406dbcdc6a28d882a00e3a3.tar.bz2
ELFObjectWriter: Remove the MCContext argument from getRelocType
Additionally, swap MCFixup/MCValue order to match addReloc/recordRelocation.
Diffstat (limited to 'llvm/lib/MC/ELFObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/ELFObjectWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/ELFObjectWriter.cpp b/llvm/lib/MC/ELFObjectWriter.cpp
index 4665d85..7df9e90 100644
--- a/llvm/lib/MC/ELFObjectWriter.cpp
+++ b/llvm/lib/MC/ELFObjectWriter.cpp
@@ -1377,7 +1377,7 @@ void ELFObjectWriter::recordRelocation(const MCFragment &F,
if (mc::isRelocRelocation(Fixup.getKind()))
Type = Fixup.getKind() - FirstLiteralRelocationKind;
else
- Type = TargetObjectWriter->getRelocType(Ctx, Target, Fixup, IsPCRel);
+ Type = TargetObjectWriter->getRelocType(Fixup, Target, IsPCRel);
bool UseSectionSym =
SymA && SymA->getBinding() == ELF::STB_LOCAL && !SymA->isUndefined();