This is an archive of the discontinued LLVM Phabricator instance.

[ELF] Simplify dynamic table entry creation
ClosedPublic

Authored by davide on May 21 2015, 2:59 PM.

Details

Summary

It removes some amount of code.

Mips/MipsDynamicTable.h | 35 ++++---------------
OutputELFWriter.cpp | 24 ++++---------
SectionChunks.cpp | 88 ++++++++++++++++++------------------------------
SectionChunks.h | 2 -
4 files changed, 50 insertions(+), 99 deletions(-)

Diff Detail

Event Timeline

davide updated this revision to Diff 26277.May 21 2015, 2:59 PM
davide retitled this revision from to [ELF] Simplify dynamic table entry creation.
davide updated this object.
davide edited the test plan for this revision. (Show Details)
davide added reviewers: ruiu, atanasyan, lhames, Bigcheese.
davide set the repository for this revision to rL LLVM.
davide added a subscriber: Unknown Object (MLST).
atanasyan accepted this revision.May 21 2015, 3:19 PM
atanasyan edited edge metadata.

LGTM

lib/ReaderWriter/ELF/Mips/MipsDynamicTable.h
37

I think we can initialize d_val field here instead of d_ptr and remove the third argument from the addEntry routine.

This revision is now accepted and ready to land.May 21 2015, 3:19 PM
davide added inline comments.May 21 2015, 3:50 PM
lib/ReaderWriter/ELF/Mips/MipsDynamicTable.h
37

I was tempted to do so, I honestly dislike more verbose API, but my lack of familiarity with the MIPS backend stopped me. Thanks.

This revision was automatically updated to reflect the committed changes.