This is an archive of the discontinued LLVM Phabricator instance.

Mark non-alloc sections after marking alloc sections
Needs ReviewPublic

Authored by ruiu on Apr 10 2019, 5:36 AM.

Details

Summary

Previously, we mark non-alloc sections except debug info sections,
mark alloc sections, and optionally mark debug sections. This patch
simplifies the step by marking alloc sections first.

This patch also updates comments.

Event Timeline

ruiu created this revision.Apr 10 2019, 5:36 AM
ruiu retitled this revision from Mark non-alloc sections after marking alloc sections. Previously, we mark non-alloc sections except debug info sections, mark alloc sections, and optionally mark debug sections. This patch simplifies the step by marking alloc sections first. to Mark non-alloc sections after marking alloc sections.Apr 10 2019, 5:37 AM
ruiu edited the summary of this revision. (Show Details)
ruiu updated this revision to Diff 194499.Apr 10 2019, 5:43 AM
  • remove dead code
rocallahan added inline comments.Apr 10 2019, 1:36 PM
lld/ELF/InputFiles.h
241

This comment seems to get the meaning of the boolean the wrong way around? It's safe to discard debuginfo when this is *false*.

ruiu updated this revision to Diff 194644.Apr 11 2019, 1:12 AM
  • address review comment