[llvm-branch-commits] [NFCI][ELF] Merge AddendOnly and AddendOnlyWithTargetVA (PR #150797)
Alexander Richardson via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Jul 27 11:00:07 PDT 2025
================
@@ -422,13 +422,10 @@ class DynamicReloc {
/// The resulting dynamic relocation has already had its addend computed.
/// Calling computeAddend() is an error. Only for internal use.
Computed,
- /// The resulting dynamic relocation does not reference a symbol (#sym must
- /// be nullptr) and uses #addend as the result of computeAddend(ctx).
- AddendOnly,
/// The resulting dynamic relocation will not reference a symbol: #sym is
/// only used to compute the addend with InputSection::getRelocTargetVA().
/// Useful for various relative and TLS relocations (e.g. R_X86_64_TPOFF64).
- AddendOnlyWithTargetVA,
+ AddendOnly,
----------------
arichardson wrote:
Ah yes never mind. I guess the NULL value could be mapped to dummySym in the call to getRelocTargetVA, but that doesn't add any value.
https://github.com/llvm/llvm-project/pull/150797
More information about the llvm-branch-commits
mailing list