diff options
author | Teresa Johnson <tejohnson@google.com> | 2016-10-30 05:15:23 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2016-10-30 05:15:23 +0000 |
commit | 3bc8abdffc648cf1ff17edfed6fcb155b52e823f (patch) | |
tree | d1129315532cd132936f387b3c87d645e40c8ea3 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | 720033ad19fef80d033fc5be806e0f4c62cc0423 (diff) | |
download | bcm5719-llvm-3bc8abdffc648cf1ff17edfed6fcb155b52e823f.tar.gz bcm5719-llvm-3bc8abdffc648cf1ff17edfed6fcb155b52e823f.zip |
[ThinLTO] Correctly resolve linkonce when importing aliasee
Summary:
When we have an aliasee that is linkonce, while we can't convert
the non-prevailing copies to available_externally, we still need to
convert the prevailing copy to weak. If a reference to the aliasee
is exported, not converting a copy to weak will result in undefined
references when the linkonce is removed in its original module.
Add a new test and update existing tests.
Reviewers: mehdi_amini
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D26076
llvm-svn: 285512
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions