[lld-macho][nfc] Don't mix file sizes with addresses
authorJez Ng <jezng@fb.com>
Fri, 10 Sep 2021 21:00:43 +0000 (17:00 -0400)
committerJez Ng <jezng@fb.com>
Tue, 22 Mar 2022 21:52:53 +0000 (17:52 -0400)
commitc9c2363048b00749561070008d3b696438ee1024
tree36ec882fbe6780faa7b998bbce736bbc7318950d
parent27a4f2545f335d5792a835aed1ce518a9c807e3b
[lld-macho][nfc] Don't mix file sizes with addresses

Update DataInCode's calculation of `endAddr` to use `getSize()` instead
of `getFileSize()` -- while in practice they're the same for
non-zerofill sections (which code sections are), we still should treat
address sizes / offsets as distinct from file sizes / offsets.
lld/MachO/SyntheticSections.cpp