summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-11-23 22:01:51 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-11-23 22:01:51 +0000
commitbca90bf158013bdf1ed000bcda9901de13ffd284 (patch)
treec8f9cb4ac00760b31918c5026146de58bd77249e
parentf358bfff17e2ae6481ca664b9a5321f4d8b73d26 (diff)
downloadbcm5719-llvm-bca90bf158013bdf1ed000bcda9901de13ffd284.tar.gz
bcm5719-llvm-bca90bf158013bdf1ed000bcda9901de13ffd284.zip
Don't create implicit comdats.
comdats are explicitly represented for some time now. llvm-svn: 253924
-rw-r--r--llvm/tools/gold/gold-plugin.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index 672c4e3580d..e563376ca9a 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;
OpenPOWER on IntegriCloud