This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readelf/obj] - Report unique warnings in `parseDynamicTable`.
ClosedPublic

Authored by grimar on Dec 1 2020, 4:13 AM.

Details

Summary

This makes the warnings reported to be unique and adds test cases.

Diff Detail

Event Timeline

grimar created this revision.Dec 1 2020, 4:13 AM
Herald added a project: Restricted Project. · View Herald Transcript
grimar requested review of this revision.Dec 1 2020, 4:13 AM
MaskRay accepted this revision.Dec 1 2020, 6:32 PM

Looks great!

This revision is now accepted and ready to land.Dec 1 2020, 6:32 PM
jhenderson accepted this revision.Dec 2 2020, 1:04 AM

LGTM. The inline comment could be deferred if there are a number of places that would need updating.

llvm/tools/llvm-readobj/ELFDumper.cpp
2093–2095

Whilst you're changing this line, I recommend fixing the message case to match that from the coding standard.

grimar marked an inline comment as done.Dec 2 2020, 1:45 AM
grimar added inline comments.
llvm/tools/llvm-readobj/ELFDumper.cpp
2093–2095

There are 4 test files with multiple places where this warning is reported. I'll fix this in a follow-up.

This revision was automatically updated to reflect the committed changes.
grimar marked an inline comment as done.
grimar added inline comments.Dec 2 2020, 2:11 AM
llvm/tools/llvm-readobj/ELFDumper.cpp
2093–2095