diff options
author | Fangrui Song <i@maskray.me> | 2025-05-24 21:48:10 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2025-05-24 21:48:11 -0700 |
commit | fe32806d67eef72ff406dbcdc6a28d882a00e3a3 (patch) | |
tree | 5916d958c9abf86b7232a1a85822c8013d29a153 /llvm/lib/MC/ELFObjectWriter.cpp | |
parent | e9339481e5b75e99c295f0faf15091a70630b3d8 (diff) | |
download | llvm-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.cpp | 2 |
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(); |