This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objdump] - Many minor NFC changes to cleanup/improve the code in ELF/Object.cpp.
ClosedPublic

Authored by grimar on May 22 2019, 9:02 AM.

Details

Summary

The code in ELF/Object.cpp is sometimes a bit hard to read because of
lots of auto used everywhere. The main intention of this patch is
to replace them with the real type for places where it is not obvious.
Also it cleanups few places.

It is NFC change, but I want to be sure that there is no objections to do that since it
is massive.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar created this revision.May 22 2019, 9:02 AM
MaskRay accepted this revision.May 22 2019, 9:10 AM
This revision is now accepted and ready to land.May 22 2019, 9:10 AM
rupprecht accepted this revision.May 22 2019, 10:39 AM

Thanks, looks much more readable

jakehehrlich accepted this revision.May 22 2019, 11:26 AM

Solid improvement. LGTM.

BTW the commit tag on this change is "[llvm-objdump]" but it should be "[llvm-objcopy]"

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMay 23 2019, 2:16 AM