[lib/ObjectYAML] - Simplify the code that handles Content/Size fields.
authorGeorgii Rymar <grimar@accesssoftek.com>
Fri, 9 Oct 2020 11:57:02 +0000 (14:57 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Fri, 16 Oct 2020 06:57:27 +0000 (09:57 +0300)
commit3cfd9384bff476a4579c956e0c33697fee8bcf29
tree25527a643d4e755abc1cadf21b8e16d7a5a2b591
parent1eb2c6d23f991a16afaaf898aeaf8f78e97be6fc
[lib/ObjectYAML] - Simplify the code that handles Content/Size fields.

This is a follow-up for D89039 patch, which adds a support for
`Content`/`Size` for all sections.

Assuming that all of sections have a support of these 2 fields,
we can simplify and generalize the code.

Depends on D89039

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