summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorEugene Leviant <eleviant@accesssoftek.com>2018-10-12 07:24:02 +0000
committerEugene Leviant <eleviant@accesssoftek.com>2018-10-12 07:24:02 +0000
commiteddf6b5df563a6d10ba88272faaeae90c37dcc00 (patch)
tree36450af1d4b1f73134ebb85429c3b2d0c3555084 /llvm/lib/Transforms
parentd11aae5db572445dd22c80b2dee100f7dfbaee94 (diff)
downloadbcm5719-llvm-eddf6b5df563a6d10ba88272faaeae90c37dcc00.tar.gz
bcm5719-llvm-eddf6b5df563a6d10ba88272faaeae90c37dcc00.zip
[ThinLTO] Don't import GV which contains blockaddress
Differential revision: https://reviews.llvm.org/D53139 llvm-svn: 344325
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionImport.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp
index 8f8c85e1b18..366ac2b95f4 100644
--- a/llvm/lib/Transforms/IPO/FunctionImport.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp
@@ -278,8 +278,7 @@ static void computeImportForReferencedGlobals(
for (auto &RefSummary : VI.getSummaryList())
if (RefSummary->getSummaryKind() == GlobalValueSummary::GlobalVarKind &&
- // Don't try to import regular LTO summaries added to dummy module.
- !RefSummary->modulePath().empty() &&
+ !RefSummary->notEligibleToImport() &&
!GlobalValue::isInterposableLinkage(RefSummary->linkage()) &&
RefSummary->refs().empty()) {
ImportList[RefSummary->modulePath()].insert(VI.getGUID());
OpenPOWER on IntegriCloud