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)
commit9ca358021c2df17869cb20cae61f321a4b2ccd58
treea5a24ba5f38b6b65ae610171ec56bc9ed8618306
parentf5cb5de29bc4f7d1ee69990ae11a53c4179cdbe3
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232315 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Metadata.h
lib/IR/AsmWriter.cpp