summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/IR/AsmWriter.cpp5
-rw-r--r--llvm/test/Feature/comdat.ll3
2 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp
index 87d26b164bb..a7499bc09b3 100644
--- a/llvm/lib/IR/AsmWriter.cpp
+++ b/llvm/lib/IR/AsmWriter.cpp
@@ -1528,11 +1528,6 @@ void AssemblyWriter::printAlias(const GlobalAlias *GA) {
writeOperand(Aliasee, !isa<ConstantExpr>(Aliasee));
}
- if (GA->hasComdat()) {
- Out << ", comdat ";
- PrintLLVMName(Out, GA->getComdat()->getName(), ComdatPrefix);
- }
-
printInfoComment(*GA);
Out << '\n';
}
diff --git a/llvm/test/Feature/comdat.ll b/llvm/test/Feature/comdat.ll
index 6b94a418582..05fb87c648e 100644
--- a/llvm/test/Feature/comdat.ll
+++ b/llvm/test/Feature/comdat.ll
@@ -9,6 +9,9 @@ $f2 = comdat any
@v = global i32 0, comdat $f
; CHECK: @v = global i32 0, comdat $f
+@a = alias i32* @v
+; CHECK: @a = alias i32* @v{{$}}
+
define void @f() comdat $f {
ret void
}
OpenPOWER on IntegriCloud