summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/XCore
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-01-14 20:55:48 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-01-14 20:55:48 +0000
commitfad1639a12a60735545a4d59a35c82841131a51a (patch)
tree6f75700c5b7772d05bf515f7dc3c9a5df766b428 /llvm/lib/Target/XCore
parent55f74e829bb173ecc70ed2b83f565add5df4fa7d (diff)
downloadbcm5719-llvm-fad1639a12a60735545a4d59a35c82841131a51a.tar.gz
bcm5719-llvm-fad1639a12a60735545a4d59a35c82841131a51a.zip
Don't create new comdats in CodeGen.
This patch stops the implicit creation of comdats during codegen. Clang now sets the comdat explicitly when it is required. With this patch clang and gcc now produce the same result in pr19848. llvm-svn: 226038
Diffstat (limited to 'llvm/lib/Target/XCore')
-rw-r--r--llvm/lib/Target/XCore/XCoreAsmPrinter.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Target/XCore/XCoreAsmPrinter.cpp b/llvm/lib/Target/XCore/XCoreAsmPrinter.cpp
index 82e4e3690b4..3999f1254f6 100644
--- a/llvm/lib/Target/XCore/XCoreAsmPrinter.cpp
+++ b/llvm/lib/Target/XCore/XCoreAsmPrinter.cpp
@@ -105,7 +105,6 @@ void XCoreAsmPrinter::emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV) {
OutContext));
if (GV->hasWeakLinkage() || GV->hasLinkOnceLinkage() ||
GV->hasCommonLinkage()) {
- // TODO Use COMDAT groups for LinkOnceLinkage
OutStreamer.EmitSymbolAttribute(SymGlob, MCSA_Weak);
}
}
@@ -140,7 +139,6 @@ void XCoreAsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) {
emitArrayBound(GVSym, GV);
OutStreamer.EmitSymbolAttribute(GVSym, MCSA_Global);
- // TODO Use COMDAT groups for LinkOnceLinkage
if (GV->hasWeakLinkage() || GV->hasLinkOnceLinkage() ||
GV->hasCommonLinkage())
OutStreamer.EmitSymbolAttribute(GVSym, MCSA_Weak);
OpenPOWER on IntegriCloud