raw_ostream: If writing a string that is larger than the buffer, write it directly...
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 4 Mar 2011 18:18:16 +0000 (18:18 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 4 Mar 2011 18:18:16 +0000 (18:18 +0000)
commite90756d8a095264f6d6ae6b3a660e73c587162cd
tree44179711dabf20c1dbc1b8e0d4cb485184bd325f
parentbeb9a1f9fd1b660809929bf136eb2d897638d4c1
raw_ostream: If writing a string that is larger than the buffer, write it directly instead of doing many buffer-sized writes.

This caps the number of write(2) calls per string to a maximum of 2.

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