[llvm-commits] [llvm] r114850 - /llvm/trunk/tools/lto/LTOModule.cpp
Bill Wendling
isanbard at gmail.com
Mon Sep 27 11:05:19 PDT 2010
Author: void
Date: Mon Sep 27 13:05:19 2010
New Revision: 114850
URL: http://llvm.org/viewvc/llvm-project?rev=114850&view=rev
Log:
The "linker_private_weak*" linkages should set the LTO_SYMBOL_DEFINITION_WEAK
during LTO.
Modified:
llvm/trunk/tools/lto/LTOModule.cpp
Modified: llvm/trunk/tools/lto/LTOModule.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/LTOModule.cpp?rev=114850&r1=114849&r2=114850&view=diff
==============================================================================
--- llvm/trunk/tools/lto/LTOModule.cpp (original)
+++ llvm/trunk/tools/lto/LTOModule.cpp Mon Sep 27 13:05:19 2010
@@ -325,7 +325,9 @@
}
// 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()) {
More information about the llvm-commits
mailing list