OSDN Git Service

[ThinLTO] Remove imported available externally defs from comdats.
authorTeresa Johnson <tejohnson@google.com>
Mon, 8 Feb 2016 18:47:20 +0000 (18:47 +0000)
committerTeresa Johnson <tejohnson@google.com>
Mon, 8 Feb 2016 18:47:20 +0000 (18:47 +0000)
commitce0afe6f7ff242ee1146d9d9a88bf9df2f53f20f
treed58769d2e4e4f7713e0d41c94fa0bbea71cb015c
parent04638a608bcf6312692a9ebfd67ee7cfc0e46475
[ThinLTO] Remove imported available externally defs from comdats.

Summary:
Available externally definitions are considered declarations for the
linker and eventually dropped. As such they are not allowed to be
in comdats. Remove any such imported functions from comdats.

Reviewers: rafael

Subscribers: davidxl, llvm-commits, joker.eph

Differential Revision: http://reviews.llvm.org/D16120

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260122 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Linker/LinkModules.cpp
test/Linker/Inputs/funcimport_comdat.ll [new file with mode: 0644]
test/Linker/funcimport_comdat.ll [new file with mode: 0644]