raw_ostream: Lift out flush_nonempty.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 16 Mar 2009 22:55:06 +0000 (22:55 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 16 Mar 2009 22:55:06 +0000 (22:55 +0000)
commitcf2a2c6a26427733f31dd539c6ee6486ea191da2
treefb38cd0aa092459d67a629f2ae107cae8f271320
parent4752bd3b40f4c4a15ca9eeb5122e405b17c87b3d
raw_ostream: Lift out flush_nonempty.
 - Flush a known non-empty buffers; enforces the interface to
   flush_impl and kills off HandleFlush (which I saw no reason to be
   an inline method, Chris?).

 - Clarify invariant that flush_impl is only called with OutBufCur >
   OutBufStart.

 - This also cleary collects all places where we have to deal with the
   buffer possibly not existing.

 - A few more comments and fixing the unbuffered behavior remain in
   this commit sequence.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67057 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/raw_ostream.h
lib/Support/raw_ostream.cpp