diff options
author | Greg McGary <gkm@fb.com> | 2020-10-14 09:49:54 -0700 |
---|---|---|
committer | Greg McGary <gkm@fb.com> | 2020-12-17 20:21:41 -0800 |
commit | d4ec3346b1baf31819d20a8950ced8be8f66a408 (patch) | |
tree | c450cde0a1f751fd13107d44bfae3c6477146e4b /llvm/lib/Transforms/Utils/SimplifyIndVar.cpp | |
parent | ed6a135246f01eb7a52bbe321a0b4de1d40b513d (diff) | |
download | llvm-d4ec3346b1baf31819d20a8950ced8be8f66a408.zip llvm-d4ec3346b1baf31819d20a8950ced8be8f66a408.tar.gz llvm-d4ec3346b1baf31819d20a8950ced8be8f66a408.tar.bz2 |
[lld-macho][nfc] Refactor to accommodate paired relocs
This is a refactor to pave the way for supporting paired-ADDEND for ARM64. The only paired reloc type for X86_64 is SUBTRACTOR. In a later diff, I will add SUBTRACTOR for both X86_64 and ARM64.
* s/`getImplicitAddend`/`getAddend`/ because it handles all forms of addend: implicit, explicit, paired.
* add predicate `bool isPairedReloc()`
* check range of `relInfo.r_symbolnum` is internal, unrelated to user-input, so use `assert()`, not `error()`
* minor cleanups & rearrangements in `InputFile::parseRelocations()`
Differential Revision: https://reviews.llvm.org/D90614
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyIndVar.cpp')
0 files changed, 0 insertions, 0 deletions