[llvm-readobj] - Simplify conditions used for printing segment mappings. NFCI.
authorGeorgii Rymar <grimar@accesssoftek.com>
Thu, 23 Apr 2020 12:54:25 +0000 (15:54 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Fri, 1 May 2020 15:57:09 +0000 (18:57 +0300)
commite4ba3ff35942da35c65315d1a590c2709dc99f07
tree29b6bfa894f55bffabc7fe8abda60398894b3b0c
parent0d54612164519c874eecf5a1be68597b96410628
[llvm-readobj] - Simplify conditions used for printing segment mappings. NFCI.

This patch is a NFC refactoring.

Currently the logic is overcomplicated, contains dead conditions and is very hard to read.
This patch performs a very straightforward simplification. Probably it can be
simplified and improved more, but we need to land test cases documenting/testing
all the current functionality first.

Differential revision: https://reviews.llvm.org/D78709
llvm/tools/llvm-readobj/ELFDumper.cpp