[PATCH] D31963: ThinLTOBitcodeWriter: keep comdats together, rename if leader is renamed

Bob Haarman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 11 16:33:50 PDT 2017


inglorion created this revision.

COFF requires that every comdat contain a symbol with the same name as
the comdat. ThinLTOBitcodeWriter renames symbols, which may cause this
requirement to be violated. This change avoids such violations by
renaming comdats if their leaders are renamed. It also keeps comdats
together when splitting modules.


https://reviews.llvm.org/D31963

Files:
  lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
  test/Transforms/ThinLTOBitcodeWriter/comdat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31963.94908.patch
Type: text/x-patch
Size: 7883 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170411/abbbda2b/attachment.bin>


More information about the llvm-commits mailing list