This is an archive of the discontinued LLVM Phabricator instance.

[obj2yaml] - Merge dumpRelSection and dumpRelaSection. NFC.
ClosedPublic

Authored by grimar on Jan 30 2019, 9:36 AM.

Details

Summary

These methods are very similar, so I would merge them into one.
(also, does not seem that any additional generalization would
make the code simpler too)

Diff Detail

Repository
rL LLVM

Event Timeline

grimar created this revision.Jan 30 2019, 9:36 AM

Basically looks fine, but I'd like the reordering done before I approve.

tools/obj2yaml/elf2yaml.cpp
365 ↗(On Diff #184314)

This would probably line up better in diffs and history etc if you inverted this (i.e. do SHT_REL first, followed by SHT_RELA), since that matches the original function order.

grimar updated this revision to Diff 184486.Jan 31 2019, 5:06 AM
  • Reordered.
This revision is now accepted and ready to land.Jan 31 2019, 5:30 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJan 31 2019, 11:50 PM