commit | dd2d6cfee4ca865f9b3875dbf00214215198894a | [log] [tgz] |
---|---|---|
author | Mehdi Amini <mehdi.amini@apple.com> | Tue May 03 00:27:28 2016 +0000 |
committer | Mehdi Amini <mehdi.amini@apple.com> | Tue May 03 00:27:28 2016 +0000 |
tree | 40c9c45ffa61196d32eedc5509e27e1f830f27e0 | |
parent | 02073cb41cce5b16bcd9bf56a88483d5a9afd461 [diff] |
ThinLTO: do not import function whose linkage prevents inlining. There is not point in importing a "weak" or a "linkonce" function since we won't be able to inline it anyway. We already had a targeted check for WeakAny, this is using the same check on GlobalValue as the inline, i.e. isMayBeOverriddenLinkage() From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268341 91177308-0d34-0410-b5e6-96231b3b80d8