diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-15 20:31:46 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-15 20:31:46 +0000 |
commit | c8213b782735c7916cbc996c8dcdf89f9593d354 (patch) | |
tree | d2ef357d41d00a2c3b72d344552e17bab3358355 /lib/Support | |
parent | d1c990ff67d00c02fe39fef857c2581cc41ad1f1 (diff) | |
download | external_llvm-c8213b782735c7916cbc996c8dcdf89f9593d354.zip external_llvm-c8213b782735c7916cbc996c8dcdf89f9593d354.tar.gz external_llvm-c8213b782735c7916cbc996c8dcdf89f9593d354.tar.bz2 |
Drop the raw_ostream required buffer size to 1.
- As best I can tell, we have eliminated all the code which used to require a
larger buffer size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81912 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/raw_ostream.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp index 2cb3771..0a82cc1 100644 --- a/lib/Support/raw_ostream.cpp +++ b/lib/Support/raw_ostream.cpp @@ -84,8 +84,8 @@ void raw_ostream::SetBuffered() { void raw_ostream::SetBufferAndMode(char *BufferStart, size_t Size, BufferKind Mode) { assert(((Mode == Unbuffered && BufferStart == 0 && Size == 0) || - (Mode != Unbuffered && BufferStart && Size >= 64)) && - "stream must be unbuffered, or have >= 64 bytes of buffer"); + (Mode != Unbuffered && BufferStart && Size)) && + "stream must be unbuffered or have at least one byte"); // Make sure the current buffer is free of content (we can't flush here; the // child buffer management logic will be in write_impl). assert(GetNumBytesInBuffer() == 0 && "Current buffer is non-empty!"); |