diff options
| author | Fangrui Song <i@maskray.me> | 2025-04-17 21:36:14 -0700 |
|---|---|---|
| committer | Fangrui Song <i@maskray.me> | 2025-04-17 21:36:15 -0700 |
| commit | 65d16a8101f98199b5d2505c1e9fdf2df519814b (patch) | |
| tree | 10f33a246be6f688c27671ccc5477a9989bb0035 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | d5f94c3915ace438359524b40cf84f3f54a0afae (diff) | |
[RISCV] Simplify fixup kinds that force relocations
For RELA targets, fixup kinds that force relocations (GOT, TLS, ALIGN,
RELAX, etc) can bypass `applyFixup` and be encoded as
`FirstRelocationKind+i`, as seen in LoongArch. This patch removes
redundant fixup kinds and adopts the `FirstRelocationKind+i` encoding.
The `llvm-mc -show-encoding` output no longer displays descriptive fixup
names, as this information is removed from
`RISCVAsmBackend::getFixupKindInfo`. While a backend hook could be added
to call `llvm::object::getELFRelocationTypeName`, it's unnecessary since
the relocation in `-filetype=obj` output is what truly matters.
Pull Request: https://github.com/llvm/llvm-project/pull/136088
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
