This is an archive of the discontinued LLVM Phabricator instance.

[yaml2obj] - Remove helper methods that are probably excessive. NFC.
ClosedPublic

Authored by grimar on Jun 7 2019, 3:13 AM.

Details

Summary

These methods are used only once. One of them is not used at all.
I see no much sence to have them, I think code is more readable
without them.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar created this revision.Jun 7 2019, 3:13 AM
grimar marked an inline comment as done.
grimar added inline comments.
tools/yaml2obj/yaml2elf.cpp
192 ↗(On Diff #203521)

Perhaps we can keep the getSectionCount() though.

jhenderson accepted this revision.Jun 7 2019, 7:05 AM

LGTM. I don't think we need the section count one, since we only use it once, and the context is pretty clear.

This revision is now accepted and ready to land.Jun 7 2019, 7:05 AM
This revision was automatically updated to reflect the committed changes.
grimar marked an inline comment as not done.
Herald added a project: Restricted Project. · View Herald TranscriptJun 10 2019, 2:54 AM