OSDN Git Service

raw_ostream: Rework implementation of unbuffered streams so outputting
authorDaniel Dunbar <daniel@zuster.org>
Tue, 17 Mar 2009 01:13:35 +0000 (01:13 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 17 Mar 2009 01:13:35 +0000 (01:13 +0000)
commitd17d74bb80d9da1712a066df40122e8584dad227
tree52f6ed729f4c3fc9424adad8dad5b1dd81f01809
parent6b233395025069f63156ea2b524cdb708a14731f
raw_ostream: Rework implementation of unbuffered streams so outputting
a single character requires only one branch to follow slow path.
 - Never use a buffer when writing on an unbuffered stream.

 - Move default buffer size to header.

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