summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-15 20:31:46 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-15 20:31:46 +0000
commit316b4a020649eba16665b8bce77f17a52b058363 (patch)
tree609bfae6e9b08d5ccbff9e8f6edd8107bfe035fa /llvm/lib/Support
parent3ef7d8f4b4a187dad26cf0ecc329810cc0ec1451 (diff)
downloadbcm5719-llvm-316b4a020649eba16665b8bce77f17a52b058363.tar.gz
bcm5719-llvm-316b4a020649eba16665b8bce77f17a52b058363.zip
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. llvm-svn: 81912
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/raw_ostream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/raw_ostream.cpp b/llvm/lib/Support/raw_ostream.cpp
index 2cb37712872..0a82cc1d10c 100644
--- a/llvm/lib/Support/raw_ostream.cpp
+++ b/llvm/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!");
OpenPOWER on IntegriCloud