From b95b42740926b283d9ef7e93056d6aa1c9062e12 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 30 Aug 2017 20:40:36 +0000 Subject: [IR] Don't print "!DIExpression() = !DIExpression()" when dumping Now that we print DIExpressions inline everywhere, we don't need to print them once as an operand and again as a value. This is only really visible when calling dump() or print() directly on a DIExpression during debugging. llvm-svn: 312168 --- llvm/lib/IR/AsmWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/IR/AsmWriter.cpp') diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp index 1cd6dd0ddff..3443c6a3d78 100644 --- a/llvm/lib/IR/AsmWriter.cpp +++ b/llvm/lib/IR/AsmWriter.cpp @@ -3592,7 +3592,7 @@ static void printMetadataImpl(raw_ostream &ROS, const Metadata &MD, /* FromValue */ true); auto *N = dyn_cast(&MD); - if (OnlyAsOperand || !N) + if (OnlyAsOperand || !N || isa(MD)) return; OS << " = "; -- cgit v1.2.3