[PATCH] D26076: [ThinLTO] Correctly resolve linkonce when importing aliasee
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 28 08:28:04 PDT 2016
tejohnson created this revision.
tejohnson added a reviewer: mehdi_amini.
tejohnson added a subscriber: llvm-commits.
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.
https://reviews.llvm.org/D26076
Files:
lib/LTO/LTO.cpp
test/ThinLTO/X86/Inputs/linkonce_aliasee_ref_import.ll
test/ThinLTO/X86/alias_import.ll
test/ThinLTO/X86/linkonce_aliasee_ref_import.ll
test/ThinLTO/X86/weak_resolution.ll
test/tools/gold/X86/thinlto_weak_resolution.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26076.76196.patch
Type: text/x-patch
Size: 8920 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161028/ed2a771b/attachment.bin>
More information about the llvm-commits
mailing list