diff options
| author | Teresa Johnson <tejohnson@google.com> | 2017-01-18 16:58:43 +0000 |
|---|---|---|
| committer | Teresa Johnson <tejohnson@google.com> | 2017-01-18 16:58:43 +0000 |
| commit | 2d384ac381339a2dd2659f72729775a622e34b5d (patch) | |
| tree | 9df6d100f69e95fd36e67b8f1fc0455cedcc600b /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
| parent | 6afbaf0944a04d93b1263ec86b809a44d2a54abc (diff) | |
| download | bcm5719-llvm-2d384ac381339a2dd2659f72729775a622e34b5d.tar.gz bcm5719-llvm-2d384ac381339a2dd2659f72729775a622e34b5d.zip | |
Don't create a comdat group for a dropped def with initializer
Non-prevailing weak/linkonce odr symbols will be dropped by ThinLTO to
available_externally when possible. If they had an initializer in the
global_ctors list, a comdat group was being created. This code
already had logic to skip available_externally defs, but now the
EliminateAvailableExternally pass will drop these symbols to
declarations earlier. Change the check to skip all declarations for
linker (which includes available_externally along with declarations).
Reviewers: mehdi_amini
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D28737
llvm-svn: 292408
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
0 files changed, 0 insertions, 0 deletions

