[ThinLTO] Always set linkage type to external when converting alias
authorTeresa Johnson <tejohnson@google.com>
Wed, 4 Nov 2015 16:01:16 +0000 (16:01 +0000)
committerTeresa Johnson <tejohnson@google.com>
Wed, 4 Nov 2015 16:01:16 +0000 (16:01 +0000)
commitd2e0ff3b7ff356f47973647da7cd90f8a4962bb9
tree426fa42d452e1b2684ac2c4f2d580f18f0884455
parent21ea6085dc581f8b6d4eb01617221185ce57dc42
[ThinLTO] Always set linkage type to external when converting alias

When converting an alias to a non-alias when the aliasee is not
imported, ensure that the linkage type is set to external so that it is
a valid linkage type. Added a test case that exposed this issue.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252054 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Linker/LinkModules.cpp
test/Linker/funcimport.ll