Don't create implicit comdats.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 23 Nov 2015 22:01:51 +0000 (22:01 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 23 Nov 2015 22:01:51 +0000 (22:01 +0000)
comdats are explicitly represented for some time now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253924 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gold/gold-plugin.cpp

index 672c4e3580da71c58117a3672ba3e602cb1dc004..e563376ca9abda504ee14452246d4608a52c8034 100644 (file)
@@ -451,8 +451,6 @@ static ld_plugin_status claim_file_hook(const ld_plugin_input_file *file,
       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;