The "linker_private_weak*" linkages should set the LTO_SYMBOL_DEFINITION_WEAK

during LTO.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114850 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2010-09-27 18:05:19 +00:00
parent d1e1703c39
commit 563ef5ec91

View File

@ -325,7 +325,9 @@ void LTOModule::addDefinedSymbol(GlobalValue *def, Mangler &mangler,
}
// set definition part
if (def->hasWeakLinkage() || def->hasLinkOnceLinkage()) {
if (def->hasWeakLinkage() || def->hasLinkOnceLinkage() ||
def->hasLinkerPrivateWeakLinkage() ||
def->hasLinkerPrivateWeakDefAutoLinkage()) {
attr |= LTO_SYMBOL_DEFINITION_WEAK;
}
else if (def->hasCommonLinkage()) {