This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Stop sorting input sections in createSections().
ClosedPublic

Authored by grimar on Oct 27 2017, 7:39 AM.

Details

Summary

It does not seem that createSections() is a good place for applying
sorting.
We can do that inside sortSections(), which name looks more appropriate.
That also should help to following cleanup change: D39045.

Diff Detail

Event Timeline

grimar created this revision.Oct 27 2017, 7:39 AM
ruiu accepted this revision.Oct 27 2017, 10:55 AM

LGTM

ELF/Writer.cpp
1024

Remove {}

1033

Cmd -> Sec

This revision is now accepted and ready to land.Oct 27 2017, 10:55 AM
This revision was automatically updated to reflect the committed changes.