[llvm-readelf/obj] - Deduplicate the logic that prints notes. NFCI.
authorGeorgii Rymar <grimar@accesssoftek.com>
Tue, 24 Nov 2020 10:49:40 +0000 (13:49 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Wed, 25 Nov 2020 08:04:13 +0000 (11:04 +0300)
commitec0b927e4aa863dd610b97f3d6e996ca05475846
tree1fc18b3e87e3feaef8d13b8795092448746acd1b
parent0bf3d4bc3121394c6153eda64b1a7086a70ec3b2
[llvm-readelf/obj] - Deduplicate the logic that prints notes. NFCI.

We have a similar logic for LLVM/GNU styles that can be deduplicated.
This will allow to replace `reportError` calls with `reportUniqueWarning`
calls in a single place.

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