summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-03-15 06:53:32 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-03-15 06:53:32 +0000
commita66dc8f689bf77bd5548a581fba3a35a834aea0d (patch)
tree9fa3ffdfa2dc5155a3cf08717bebc6ba0c0a0687 /llvm/lib
parent2b6dd685352ea992f675f5f7ba5a9de07fcb6e63 (diff)
downloadbcm5719-llvm-a66dc8f689bf77bd5548a581fba3a35a834aea0d.tar.gz
bcm5719-llvm-a66dc8f689bf77bd5548a581fba3a35a834aea0d.zip
IR: Default the Metadata::dump() argument "harder" after r232275
Use an overload instead of a default argument for `Metadata::dump()`. The latter seems to require calling `dump(nullptr)` explicitly when using a debugger, where as the former doesn't. Other than utility for debugging, there's NFC here. llvm-svn: 232315
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/IR/AsmWriter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp
index 509fb423ff7..ea6822052d0 100644
--- a/llvm/lib/IR/AsmWriter.cpp
+++ b/llvm/lib/IR/AsmWriter.cpp
@@ -3290,6 +3290,9 @@ LLVM_DUMP_METHOD
void NamedMDNode::dump() const { print(dbgs()); }
LLVM_DUMP_METHOD
+void Metadata::dump() const { dump(nullptr); }
+
+LLVM_DUMP_METHOD
void Metadata::dump(const Module *M) const {
print(dbgs(), M);
dbgs() << '\n';
OpenPOWER on IntegriCloud