[lld-macho][nfc] Remove TODO regarding addends
authorJez Ng <jezng@fb.com>
Mon, 1 Mar 2021 17:30:08 +0000 (12:30 -0500)
committerJez Ng <jezng@fb.com>
Mon, 1 Mar 2021 17:30:08 +0000 (12:30 -0500)
commitf083f652c3fdc97e0bda278fee8354a0cf7ff551
treeab2ac11d8c11eb331a34680d35bf45fc644607a4
parent776be16ba0532dbb3d66cc104d15a7f13a154e3f
[lld-macho][nfc] Remove TODO regarding addends

There was initially some concern around the correct handling of pcrel
section relocations with r_length != 2. But it looks like there are no such
relocations in practice -- x86_64's pcrel section relocs all have r_length == 2,
and ARM64 doesn't even have pcrel section relocs. So we can replace the TODO
with an assert.

Reviewed By: #lld-macho, thakis

Differential Revision: https://reviews.llvm.org/D97576
lld/MachO/InputFiles.cpp