diff options
| author | Mehdi Amini <mehdi.amini@apple.com> | 2017-02-02 18:24:37 +0000 |
|---|---|---|
| committer | Mehdi Amini <mehdi.amini@apple.com> | 2017-02-02 18:24:37 +0000 |
| commit | 827600deaf7b35ca55bcee4e2b226bb669aaf299 (patch) | |
| tree | 6e8d72bad974648e30247321a8a03226df5d3ecb /llvm/lib/Transforms/IPO | |
| parent | 86b03cf08623237f3c596a46dc2e3441d3818059 (diff) | |
| download | bcm5719-llvm-827600deaf7b35ca55bcee4e2b226bb669aaf299.tar.gz bcm5719-llvm-827600deaf7b35ca55bcee4e2b226bb669aaf299.zip | |
Revert "[ThinLTO] Add an auto-hide feature"
This reverts r293912, bots are broken.
llvm-svn: 293914
Diffstat (limited to 'llvm/lib/Transforms/IPO')
| -rw-r--r-- | llvm/lib/Transforms/IPO/FunctionImport.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp index f469c24dd42..b8fc79a03b6 100644 --- a/llvm/lib/Transforms/IPO/FunctionImport.cpp +++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp @@ -650,13 +650,6 @@ void llvm::thinLTOInternalizeModule(Module &TheModule, return !GlobalValue::isLocalLinkage(Linkage); }; - // Try to auto-hide the symbols. - for (auto &GO : TheModule.global_objects()) { - const auto &GS = DefinedGlobals.find(GO.getGUID()); - if (GS != DefinedGlobals.end() && GS->second->flags().AutoHide) - GO.setVisibility(GlobalValue::HiddenVisibility); - } - // FIXME: See if we can just internalize directly here via linkage changes // based on the index, rather than invoking internalizeModule. llvm::internalizeModule(TheModule, MustPreserveGV); |

