diff options
| author | Reid Kleckner <rnk@google.com> | 2017-08-30 20:40:36 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2017-08-30 20:40:36 +0000 |
| commit | b95b42740926b283d9ef7e93056d6aa1c9062e12 (patch) | |
| tree | ae980432d36d67c72d193edf897cc4464603f23c /llvm/lib/IR/AsmWriter.cpp | |
| parent | 955bb84090c13ad03017cea9ded2d19a819e90c9 (diff) | |
| download | bcm5719-llvm-b95b42740926b283d9ef7e93056d6aa1c9062e12.tar.gz bcm5719-llvm-b95b42740926b283d9ef7e93056d6aa1c9062e12.zip | |
[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
Diffstat (limited to 'llvm/lib/IR/AsmWriter.cpp')
| -rw-r--r-- | llvm/lib/IR/AsmWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<MDNode>(&MD); - if (OnlyAsOperand || !N) + if (OnlyAsOperand || !N || isa<DIExpression>(MD)) return; OS << " = "; |

