[llvm-readelf] - Switch to using from `reportWarning` to `reportUniqueWarning` in...
authorGeorgii Rymar <grimar@accesssoftek.com>
Fri, 27 Nov 2020 08:57:03 +0000 (11:57 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Tue, 1 Dec 2020 08:09:30 +0000 (11:09 +0300)
commit87481068fddf29e913b129b9c962ba761ae478c8
treeb879df1db0f30e6553e13780cc3afeff668fdfff
parent2e5aaf65a344ae804343bfed6326ef33f61586b0
[llvm-readelf] - Switch to using from `reportWarning` to `reportUniqueWarning` in `DynRegionInfo`.

This is a part of the plan we had previously to convert all calls to
`reportUniqueWarning` and then rename it to just `reportWarning`.

I was a bit unsure about this particular change at first, because it doesn't add a
new functionality: seems it is impossible to trigger a warning duplication currently.

At the same time I find the idea of the plan mentioned very reasonable.
And with that we will be sure that `DynRegionInfo` can't report duplicate
warnings, what looks like a nice feature for possible refactorings and further tool development.

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