From bca90bf158013bdf1ed000bcda9901de13ffd284 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 23 Nov 2015 22:01:51 +0000 Subject: [PATCH] Don't create implicit comdats. comdats are explicitly represented for some time now. llvm-svn: 253924 --- llvm/tools/gold/gold-plugin.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 672c4e3580da..e563376ca9ab 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -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;