ELFDumper<ELFT>::dump() is too large and deserves splitting.
It is used by https://reviews.llvm.org/D75342
Paths
| Differential D75172
[obj2yaml] - Split sections dumping to a new ELFDumper<ELFT>::dumpSections() method. ClosedPublic Authored by grimar on Feb 26 2020, 6:12 AM.
Details Summary ELFDumper<ELFT>::dump() is too large and deserves splitting. It is used by https://reviews.llvm.org/D75342
Diff Detail
Event TimelineComment Actions This change is fine, though I want to see materialized advantage before accepting it.. (On its own, it increases complexity.) Comment Actions
By splitting 234 lines method into two I guess .. :) grimar added a child revision: D75342: [obj2yaml] - Teach tool to dump program headers..Feb 28 2020, 4:42 AM Comment Actions Personally, I prefer lots of smaller functions, even if they are just chaining into one another, so LGTM (with nit). Might want to let @MaskRay have more time to respond though.
This revision is now accepted and ready to land.Mar 2 2020, 1:25 AM Closed by commit rGe93f7e6d1ab9: [obj2yaml] - Split sections dumping to a new ELFDumper<ELFT>::dumpSections()… (authored by grimar). · Explain WhyMar 3 2020, 12:24 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 247810 llvm/tools/obj2yaml/elf2yaml.cpp
|
I feel like this is probably a violation of our policy on auto as it's not clear from the line of code what type ChunksOrErr is.