[ThinLTO] Handle an external call from an import to an alias in dest
authorTeresa Johnson <tejohnson@google.com>
Tue, 12 Jan 2016 17:48:44 +0000 (17:48 +0000)
committerTeresa Johnson <tejohnson@google.com>
Tue, 12 Jan 2016 17:48:44 +0000 (17:48 +0000)
commit51ec8b2357a936e3a17a9dc10cff74c736d7133a
tree817037db26ccab364ca9cc9575bf6be5fe0ce7fb
parent75660cfed91a8bac52d392f33bd05a73ecac04f0
[ThinLTO] Handle an external call from an import to an alias in dest

The findExternalCalls routine ignores calls to functions already
defined in the dest module. This was not handling the case where
the definition in the current module is actually an alias to a
function call.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257493 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/FunctionImport.cpp
test/Transforms/FunctionImport/Inputs/funcimport_alias.ll [new file with mode: 0644]
test/Transforms/FunctionImport/funcimport_alias.ll [new file with mode: 0644]