IR: Don't use raw_null_ostream in Verifier
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 20 Apr 2016 16:17:37 +0000 (16:17 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 20 Apr 2016 16:17:37 +0000 (16:17 +0000)
commite8fc69d1366f2c2fff66735c1af8e1f5b0feaa3f
tree27e66bd2841335970d99fbc1084125bd6c90ae56
parent9c3ff1986bcbefa0a6ae7996188968fcd4e1e81d
IR: Don't use raw_null_ostream in Verifier

While using a raw_null_ostream meant that the Verifier didn't have to
think about whether to print, it's actually quite expensive to print out
IR.  Only print if the output is going somewhere.

llvm-svn: 266884
llvm/lib/IR/Verifier.cpp