[llvm] r253924 - Don't create implicit comdats.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 23 14:01:51 PST 2015


Author: rafael
Date: Mon Nov 23 16:01:51 2015
New Revision: 253924

URL: http://llvm.org/viewvc/llvm-project?rev=253924&view=rev
Log:
Don't create implicit comdats.

comdats are explicitly represented for some time now.

Modified:
    llvm/trunk/tools/gold/gold-plugin.cpp

Modified: llvm/trunk/tools/gold/gold-plugin.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/gold/gold-plugin.cpp?rev=253924&r1=253923&r2=253924&view=diff
==============================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp (original)
+++ llvm/trunk/tools/gold/gold-plugin.cpp Mon Nov 23 16:01:51 2015
@@ -451,8 +451,6 @@ static ld_plugin_status claim_file_hook(
       const Comdat *C = Base->getComdat();
       if (C)
         sym.comdat_key = strdup(C->getName().str().c_str());
-      else if (Base->hasWeakLinkage() || Base->hasLinkOnceLinkage())
-        sym.comdat_key = strdup(sym.name);
     }
 
     sym.resolution = LDPR_UNKNOWN;




More information about the llvm-commits mailing list