[PATCH] D45350: COFF: Process /merge flag as we create output sections.
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 6 17:01:20 PDT 2018
ruiu accepted this revision.
ruiu added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: lld/COFF/Writer.cpp:1178
// We assume .pdata contains function table entries only.
- uint8_t *Begin = Buffer->getBufferStart() + PdataSec->getFileOff();
- uint8_t *End = Begin + PdataSec->getVirtualSize();
+ auto bufAddr = [&](Chunk *C) {
+ return Buffer->getBufferStart() + C->getOutputSection()->getFileOff() +
----------------
BufAddr
https://reviews.llvm.org/D45350
More information about the llvm-commits
mailing list