This is an archive of the discontinued LLVM Phabricator instance.

COFF: Create output sections early. NFCI.
ClosedPublic

Authored by pcc on Apr 5 2018, 8:02 PM.

Details

Summary

With this, all output sections are created in one place. This will make
it simpler to implement merging of builtin sections.

Event Timeline

ruiu accepted this revision.Apr 5 2018, 8:13 PM

LGTM

Nice!

lld/COFF/Writer.cpp
336–397

auto -> uint32_t?

406

createSection -> CreateSection

462

sectionOrder -> SectionOrder

This revision is now accepted and ready to land.Apr 5 2018, 8:13 PM
This revision was automatically updated to reflect the committed changes.
pcc marked 3 inline comments as done.