Make AsmWriter more careful with formatted_raw_ostream so that
authorDan Gohman <gohman@apple.com>
Wed, 12 Aug 2009 20:56:03 +0000 (20:56 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 12 Aug 2009 20:56:03 +0000 (20:56 +0000)
commit1220e10f70f89e0f8082344646d79805edf9025d
tree67163b03dd31306ee1ef6c8644e3cbaed0076f56
parentf3e488476e1bdfe9de6daddcd1cd452c9d874b56
Make AsmWriter more careful with formatted_raw_ostream so that
it doesn't leave the underlying stream in unbuffered mode when
the stream was originally buffered.

Also, change WriteAsOperand back to plain raw_ostream. This
lets it work for either formatted_raw_ostream or plain
raw_ostream, so that it doesn't have to force a buffer flush
on a plain raw_ostream.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78837 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/AsmWriter.cpp