diff options
author | Eugene Leviant <eleviant@accesssoftek.com> | 2019-10-22 12:57:23 +0000 |
---|---|---|
committer | Eugene Leviant <eleviant@accesssoftek.com> | 2019-10-22 12:57:23 +0000 |
commit | a461b7a03cde32cd6560dcbcea23ec51dfd1e522 (patch) | |
tree | 2a33036b1a7a382a92c89bb845ad3808285de945 | |
parent | 31ec98d4e0ebdcc2df0759eebb9450ead50ed4af (diff) |
[ThinLTO] Add code comment. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375500 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/IPO/FunctionImport.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/FunctionImport.cpp b/lib/Transforms/IPO/FunctionImport.cpp index 2ce8c92ec8a..3f5cc078d75 100644 --- a/lib/Transforms/IPO/FunctionImport.cpp +++ b/lib/Transforms/IPO/FunctionImport.cpp @@ -952,6 +952,9 @@ void llvm::thinLTOResolvePrevailingInModule( if (NewLinkage == GV.getLinkage()) return; if (GlobalValue::isLocalLinkage(GV.getLinkage()) || + // Don't internalize anything here, because the code below + // lacks necessary correctness checks. Leave this job to + // LLVM 'internalize' pass. GlobalValue::isLocalLinkage(NewLinkage) || // In case it was dead and already converted to declaration. GV.isDeclaration()) |