[llvm-commits] [llvm] r51210 - /llvm/trunk/tools/lto2/LTOModule.cpp
Dale Johannesen
dalej at apple.com
Fri May 16 15:46:40 PDT 2008
Author: johannes
Date: Fri May 16 17:46:40 2008
New Revision: 51210
URL: http://llvm.org/viewvc/llvm-project?rev=51210&view=rev
Log:
Add CommonLinkage, in a way that preserves the
behavior on old .bc files.
Modified:
llvm/trunk/tools/lto2/LTOModule.cpp
Modified: llvm/trunk/tools/lto2/LTOModule.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto2/LTOModule.cpp?rev=51210&r1=51209&r2=51210&view=diff
==============================================================================
--- llvm/trunk/tools/lto2/LTOModule.cpp (original)
+++ llvm/trunk/tools/lto2/LTOModule.cpp Fri May 16 17:46:40 2008
@@ -203,6 +203,9 @@
attr |= LTO_SYMBOL_DEFINITION_TENTATIVE;
}
}
+ else if ( def->hasCommonLinkage()) {
+ attr |= LTO_SYMBOL_DEFINITION_TENTATIVE;
+ }
else {
attr |= LTO_SYMBOL_DEFINITION_REGULAR;
}
More information about the llvm-commits
mailing list