[PATCH] D62356: [COFF] Replace OutputSection* with uint16_t index in Chunk

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 23 17:01:15 PDT 2019


rnk created this revision.
rnk added reviewers: ruiu, aganea.
Herald added a subscriber: arphaman.
Herald added a project: LLVM.

Shaves another 8 bytes off of SectionChunk, the most commonly allocated
type in LLD.

These indices are only valid after we've assigned chunks to output
sections and removed empty sections, so do that in a new pass.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D62356

Files:
  lld/COFF/Chunks.cpp
  lld/COFF/Chunks.h
  lld/COFF/PDB.cpp
  lld/COFF/Writer.cpp
  lld/test/COFF/strtab-size.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62356.201098.patch
Type: text/x-patch
Size: 7553 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190524/15142f24/attachment.bin>


More information about the llvm-commits mailing list