This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj] - Introduce warnings for cases when unable to read strings from string tables.
ClosedPublic

Authored by grimar on Apr 3 2020, 7:48 AM.

Details

Summary

Currently we have no dedicated warnings, but we return error message instead of a result.
It is generally not consistent with another warnings we have.

This change was suggested and discussed here:
https://reviews.llvm.org/D77216#1954873

This change refines error messages we report and also I had to update the API
to implement it.

Diff Detail

Event Timeline

grimar created this revision.Apr 3 2020, 7:48 AM
jhenderson added inline comments.Apr 6 2020, 12:27 AM
llvm/test/tools/llvm-readobj/ELF/dynamic-malformed.test
112

It might be worth a comment here saying why the warning isn't printed in this case, sae as below.

133

I'd suggest changing the last bit of this comment to "because it was printed earlier."

llvm/test/tools/llvm-readobj/ELF/needed-libs.test
5

Perhaps worth adding --implicit-check-not=warning: here and below?

grimar updated this revision to Diff 255305.Apr 6 2020, 6:03 AM
grimar marked 3 inline comments as done.
  • Addressed review comments.
This revision is now accepted and ready to land.Apr 6 2020, 6:38 AM
MaskRay accepted this revision.Apr 6 2020, 11:27 PM

Thanks!

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 7 2020, 4:50 AM