This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readelf] - Switch to using from `reportWarning` to `reportUniqueWarning` in `DynRegionInfo`.
ClosedPublic

Authored by grimar on Nov 27 2020, 5:54 AM.

Details

Summary

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.

Depends on D92218

Diff Detail

Event Timeline

grimar created this revision.Nov 27 2020, 5:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 27 2020, 5:54 AM
Herald added a subscriber: rupprecht. · View Herald Transcript
grimar requested review of this revision.Nov 27 2020, 5:54 AM
jhenderson accepted this revision.Nov 30 2020, 12:15 AM

LGTM, with nits fixed.

llvm/tools/llvm-readobj/ELFDumper.cpp
143
144

clang-format?

This revision is now accepted and ready to land.Nov 30 2020, 12:15 AM
This revision was automatically updated to reflect the committed changes.
grimar marked 2 inline comments as done.