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 | e5dd30f77e10b3fa3395312045c06e5e15f9620e (patch) | |
tree | e1a56f0026d90a96251849452634e7b00bddbf1b /llvm/lib/Transforms/IPO/FunctionImport.cpp | |
parent | 5b99c189b3bfc0faa157f7ca39652c0bb8c315a7 (diff) | |
download | bcm5719-llvm-e5dd30f77e10b3fa3395312045c06e5e15f9620e.tar.gz bcm5719-llvm-e5dd30f77e10b3fa3395312045c06e5e15f9620e.zip |
[ThinLTO] Add code comment. NFC
llvm-svn: 375500
Diffstat (limited to 'llvm/lib/Transforms/IPO/FunctionImport.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/FunctionImport.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp index 2ce8c92ec8a..3f5cc078d75 100644 --- a/llvm/lib/Transforms/IPO/FunctionImport.cpp +++ b/llvm/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()) |