This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj] ELF: Factor out common code
ClosedPublic

Authored by davide on Aug 17 2015, 3:54 AM.

Details

Summary

It seems reasonable to me, but wanted to double check (and maybe you can propose a better name for the function)

Diff Detail

Event Timeline

davide updated this revision to Diff 32287.Aug 17 2015, 3:54 AM
davide retitled this revision from to [llvm-readobj] ELF: Factor out common code.
davide updated this object.
davide added reviewers: rafael, echristo.
davide added a subscriber: llvm-commits.
vsk added a subscriber: vsk.Aug 21 2015, 5:51 PM
vsk added inline comments.
ELFDumper.cpp
1153 ↗(On Diff #32287)

Nitpick: clang-format puts the brace on the previous line.

1154 ↗(On Diff #32287)

Does this need to be DotDynSymSec when IsDynamic=true?

davide updated this revision to Diff 32906.Aug 22 2015, 1:43 PM

Indeed. Thank you for spotting the mistake. Reading is hard.

vsk added a comment.Aug 22 2015, 7:41 PM

Thanks! LGTM.

davide accepted this revision.Aug 23 2015, 7:08 AM
davide added a reviewer: davide.
This revision is now accepted and ready to land.Aug 23 2015, 7:08 AM
davide closed this revision.Aug 23 2015, 7:08 AM