diff options
author | Fangrui Song <i@maskray.me> | 2024-08-18 15:47:38 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2024-08-18 15:47:38 -0700 |
commit | 1a6bf94407af7962345ffaf6ac9e9a9766fd8913 (patch) | |
tree | 8bd932f4c91ded8c6b112d955cfbd22119172e31 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | c6e16a49ef41261b01aabc27f4b806af6cc81a20 (diff) | |
download | llvm-1a6bf94407af7962345ffaf6ac9e9a9766fd8913.zip llvm-1a6bf94407af7962345ffaf6ac9e9a9766fd8913.tar.gz llvm-1a6bf94407af7962345ffaf6ac9e9a9766fd8913.tar.bz2 |
[MC] Remove ELFRelocationEntry::OriginalAddend
For MIPS's o32 ABI (REL), https://reviews.llvm.org/D19718 introduced
`OriginalAddend` to find the matching R_MIPS_LO16 relocation for
R_MIPS_GOT16 when STT_SECTION conversion is applicable.
lw $2, %lo(local1)
lui $2, %got(local1)
However, we could just store the original `Addend` in
`ELFRelocationEntry` and remove `OriginalAddend`.
Note: The relocation ordering algorithm in
https://reviews.llvm.org/D19718 is inefficient (#104562), which will be
addressed by another patch.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions