llvm.org GIT mirror llvm / 4fd40e8
Add protected visibility to libLTO. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60257 91177308-0d34-0410-b5e6-96231b3b80d8 Nick Lewycky 10 years ago
2 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2929 LTO_SYMBOL_DEFINITION_TENTATIVE = 0x00000200,
3030 LTO_SYMBOL_DEFINITION_WEAK = 0x00000300,
3131 LTO_SYMBOL_DEFINITION_UNDEFINED = 0x00000400,
32 LTO_SYMBOL_SCOPE_MASK = 0x00001800,
32 LTO_SYMBOL_SCOPE_MASK = 0x00003800,
3333 LTO_SYMBOL_SCOPE_INTERNAL = 0x00000800,
3434 LTO_SYMBOL_SCOPE_HIDDEN = 0x00001000,
35 LTO_SYMBOL_SCOPE_PROTECTED = 0x00002000,
3536 LTO_SYMBOL_SCOPE_DEFAULT = 0x00001800
3637 } lto_symbol_attributes;
3738
223223 // set scope part
224224 if ( def->hasHiddenVisibility() )
225225 attr |= LTO_SYMBOL_SCOPE_HIDDEN;
226 else if ( def->hasProtectedVisibility() )
227 attr |= LTO_SYMBOL_SCOPE_PROTECTED;
226228 else if ( def->hasExternalLinkage() || def->hasWeakLinkage()
227229 || def->hasLinkOnceLinkage() || def->hasCommonLinkage() )
228230 attr |= LTO_SYMBOL_SCOPE_DEFAULT;