[yaml2obj] - Change how p_offset is calculated when creating segments. NFCI.
authorGeorgii Rymar <grimar@accesssoftek.com>
Fri, 17 Apr 2020 12:06:04 +0000 (15:06 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Wed, 22 Apr 2020 09:37:44 +0000 (12:37 +0300)
commit87d33d9e09c6b727e108c6cd86b36743740e08cc
tree3c1ef1442d0deb02627109b5ae43b138b90b1d52
parent317c4913c642f8f7fa0fb150fd5e656b59f20a4a
[yaml2obj] - Change how p_offset is calculated when creating segments. NFCI.

This depends on D78361 and simplifies the computation of the `p_offset`.

Differential revision: https://reviews.llvm.org/D78363
llvm/lib/ObjectYAML/ELFEmitter.cpp