llvm.org GIT mirror llvm / f0d286b
LinkOnce definitions have default scope, like weak definitions. Otherwise, the linker may not be able to match LinkOnce definition from one module with an exteranl reference from other module. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53580 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 11 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
223223 // set scope part
224224 if ( def->hasHiddenVisibility() )
225225 attr |= LTO_SYMBOL_SCOPE_HIDDEN;
226 else if ( def->hasExternalLinkage() || def->hasWeakLinkage() )
226 else if ( def->hasExternalLinkage() || def->hasWeakLinkage()
227 || def->hasLinkOnceLinkage() )
227228 attr |= LTO_SYMBOL_SCOPE_DEFAULT;
228229 else
229230 attr |= LTO_SYMBOL_SCOPE_INTERNAL;