ThinLTO: Resolve linkonce_odr aliases just like functions
authorMehdi Amini <mehdi.amini@apple.com>
Thu, 21 Apr 2016 05:47:17 +0000 (05:47 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Thu, 21 Apr 2016 05:47:17 +0000 (05:47 +0000)
commita71a5a628956b30e3f86167335a9ffe4d08abdbf
tree8030f3a42b4c7752eb659db98980d016924ec094
parent253f71ba5a1ba64e06b1b176c8a92af14b057b3b
ThinLTO: Resolve linkonce_odr aliases just like functions

This help to streamline the process of handling importing since
we don't need to special case alias everywhere: just like
linkonce_odr function, make sure at least one alias is emitted
by turning it weak.

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

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 266958
llvm/lib/LTO/ThinLTOCodeGenerator.cpp
llvm/test/ThinLTO/X86/Inputs/alias_import.ll [new file with mode: 0644]
llvm/test/ThinLTO/X86/Inputs/alias_resolution.ll [new file with mode: 0644]
llvm/test/ThinLTO/X86/alias_import.ll [new file with mode: 0644]
llvm/test/ThinLTO/X86/alias_resolution.ll [new file with mode: 0644]
llvm/test/ThinLTO/X86/odr_resolution.ll