]> granicus.if.org Git - llvm/commit
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)
commit718dba15cd11383ee1f8722e3f4611d32da87913
treef5f126033692a5cd164a99f822907616d9fe15ac
parent0c3ae2bea6ffe15966cb93a45ae561785bf48bcb
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315026 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/ModuleUtils.h
lib/Transforms/Utils/ModuleUtils.cpp
test/Transforms/ThinLTOBitcodeWriter/filter-alias.ll
test/Transforms/ThinLTOBitcodeWriter/unsplittable.ll