This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj] - Always print "Predecessors" for version definition sections.
ClosedPublic

Authored by grimar on Nov 26 2019, 7:07 AM.

Details

Summary

This is a follow-up discussed in D70495 thread.

The current logic is unusual for llvm-readobj. It doesn't print predecessors
list when it is empty. This is not good for machine parsers.
D70495 had to add this condition during refactroring to reduce amount of changes,
in tests, because the original code also had a similar logic.

Now seems it is time to get rid of it. This patch does it.

Diff Detail

Event Timeline

grimar created this revision.Nov 26 2019, 7:07 AM
Herald added a project: Restricted Project. · View Herald Transcript
jhenderson accepted this revision.Nov 26 2019, 7:18 AM

LGTM. Might want @MaskRay to confirm.

This revision is now accepted and ready to land.Nov 26 2019, 7:18 AM
MaskRay accepted this revision.Nov 26 2019, 10:24 AM

LG. Typo in the description: refactroring -> refactoring.

ruiu accepted this revision.Nov 26 2019, 9:00 PM

LGTM

This revision was automatically updated to reflect the committed changes.