From 563ef5ec911d219b54fdb508518abd02a8dd3cfd Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 27 Sep 2010 18:05:19 +0000 Subject: 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 --- tools/lto/LTOModule.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp index c7cd585..fc028a2 100644 --- a/tools/lto/LTOModule.cpp +++ b/tools/lto/LTOModule.cpp @@ -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()) { -- cgit v1.1