[PATCH] D55293: [LLD][COFF] Unmerged sections

Alexandre Ganea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 4 13:08:17 PST 2018


aganea created this revision.
aganea added reviewers: rnk, zturner.
aganea added a project: lld.
Herald added a subscriber: MaskRay.

As suggested by @rnk here <https://reviews.llvm.org/D54802#inline-485011>, I moved `Map` up into `lld::coff::Writer` and added the concept of `UnmergedSection` (it was called `InputSection` in D54802 <https://reviews.llvm.org/D54802>).

`UnmergedSections` are simply sections that contribute to a `OutputSection`.
This is needed later by D54802 <https://reviews.llvm.org/D54802> to generate COFF groups in the `* Linker *` module.

I used a `std::map` below instead of a `DenseHash` because we need to retain a sorted order when enumerating.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D55293

Files:
  COFF/Writer.cpp
  COFF/Writer.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55293.176699.patch
Type: text/x-patch
Size: 13058 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181204/6f1811eb/attachment.bin>


More information about the llvm-commits mailing list