IR: Default the Metadata::dump() argument "harder" after r232275
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 15 Mar 2015 06:53:32 +0000 (06:53 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 15 Mar 2015 06:53:32 +0000 (06:53 +0000)
commita66dc8f689bf77bd5548a581fba3a35a834aea0d
tree9fa3ffdfa2dc5155a3cf08717bebc6ba0c0a0687
parent2b6dd685352ea992f675f5f7ba5a9de07fcb6e63
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
llvm/include/llvm/IR/Metadata.h
llvm/lib/IR/AsmWriter.cpp