[llvm-commits] [llvm] r53781 - /llvm/branches/Apple/Gaz/tools/lto/LTOModule.cpp

Bill Wendling isanbard at gmail.com
Fri Jul 18 18:16:10 PDT 2008


Author: void
Date: Fri Jul 18 20:16:10 2008
New Revision: 53781

URL: http://llvm.org/viewvc/llvm-project?rev=53781&view=rev
Log:
Pull r53780 into Gaz:

>From Nick:
I found another case like Devang's hasLinkOnceLinkage().  It affects code that
has a tentative definition in llvm bitcode and a reference in mach-o file.

Modified:
    llvm/branches/Apple/Gaz/tools/lto/LTOModule.cpp

Modified: llvm/branches/Apple/Gaz/tools/lto/LTOModule.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Gaz/tools/lto/LTOModule.cpp?rev=53781&r1=53780&r2=53781&view=diff

==============================================================================
--- llvm/branches/Apple/Gaz/tools/lto/LTOModule.cpp (original)
+++ llvm/branches/Apple/Gaz/tools/lto/LTOModule.cpp Fri Jul 18 20:16:10 2008
@@ -225,7 +225,7 @@
     if ( def->hasHiddenVisibility() )
         attr |= LTO_SYMBOL_SCOPE_HIDDEN;
     else if ( def->hasExternalLinkage() || def->hasWeakLinkage() 
-              || def->hasLinkOnceLinkage() )
+              || def->hasLinkOnceLinkage() || def->hasCommonLinkage() )
         attr |= LTO_SYMBOL_SCOPE_DEFAULT;
     else
         attr |= LTO_SYMBOL_SCOPE_INTERNAL;





More information about the llvm-commits mailing list