summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/FunctionImport.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2017-02-03 07:41:43 +0000
committerMehdi Amini <mehdi.amini@apple.com>2017-02-03 07:41:43 +0000
commit1380edf4ef9469e2dda07020436a1b229c1ad804 (patch)
treeeb556ccc87157b8445f7f9c59051e9f1a9f755d7 /llvm/lib/Transforms/IPO/FunctionImport.cpp
parente5f2bfaea9d96c93ff0ca8b5c986092a9a488c47 (diff)
downloadbcm5719-llvm-1380edf4ef9469e2dda07020436a1b229c1ad804.tar.gz
bcm5719-llvm-1380edf4ef9469e2dda07020436a1b229c1ad804.zip
Revert "[ThinLTO] Add an auto-hide feature"
This reverts commit r293970. After more discussion, this belongs to the linker side and there is no added value to do it at this level. llvm-svn: 293993
Diffstat (limited to 'llvm/lib/Transforms/IPO/FunctionImport.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionImport.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp
index 2966be2d46d..5fa99863135 100644
--- a/llvm/lib/Transforms/IPO/FunctionImport.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp
@@ -644,13 +644,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);
OpenPOWER on IntegriCloud