diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2008-11-29 22:49:59 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2008-11-29 22:49:59 +0000 |
commit | fa7792137c767d0c823806c8a19c09be9dd91fe8 (patch) | |
tree | 0113a77c89cee09ab360b1bab20d2e52436324d7 /tools/lto/LTOModule.cpp | |
parent | 98a6d808d7db210db351d10b0bb30f3a4e452331 (diff) | |
download | external_llvm-fa7792137c767d0c823806c8a19c09be9dd91fe8.zip external_llvm-fa7792137c767d0c823806c8a19c09be9dd91fe8.tar.gz external_llvm-fa7792137c767d0c823806c8a19c09be9dd91fe8.tar.bz2 |
Add protected visibility to libLTO.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60257 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto/LTOModule.cpp')
-rw-r--r-- | tools/lto/LTOModule.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp index 7eb7905..6331a59 100644 --- a/tools/lto/LTOModule.cpp +++ b/tools/lto/LTOModule.cpp @@ -224,6 +224,8 @@ void LTOModule::addDefinedSymbol(GlobalValue* def, Mangler &mangler, // set scope part if ( def->hasHiddenVisibility() ) attr |= LTO_SYMBOL_SCOPE_HIDDEN; + else if ( def->hasProtectedVisibility() ) + attr |= LTO_SYMBOL_SCOPE_PROTECTED; else if ( def->hasExternalLinkage() || def->hasWeakLinkage() || def->hasLinkOnceLinkage() || def->hasCommonLinkage() ) attr |= LTO_SYMBOL_SCOPE_DEFAULT; |