ModuleUtils: Stop using comdat members to generate unique module ids.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 5 Oct 2017 21:54:53 +0000 (21:54 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 5 Oct 2017 21:54:53 +0000 (21:54 +0000)
commit715bcfe0c9f1b2b14723465e26427791c59cac98
tree619df7252b8e937ffc2df5400979829a70986932
parent9da3c75a1356cb0a67cc329f246a4a40bbb450db
ModuleUtils: Stop using comdat members to generate unique module ids.

It is possible for two modules to define the same set of external
symbols without causing a duplicate symbol error at link time,
as long as each of the symbols is a comdat member. So we cannot
use them as part of a unique id for the module.

Differential Revision: https://reviews.llvm.org/D38602

llvm-svn: 315026
llvm/include/llvm/Transforms/Utils/ModuleUtils.h
llvm/lib/Transforms/Utils/ModuleUtils.cpp
llvm/test/Transforms/ThinLTOBitcodeWriter/filter-alias.ll
llvm/test/Transforms/ThinLTOBitcodeWriter/unsplittable.ll