raw_ostream: unbuffered streams weren't being immediately flushed on
single character writes. llvm-svn: 66827
This commit is contained in:
parent
1f853d6a2a
commit
db948ffaf0
|
@ -84,6 +84,8 @@ public:
|
|||
if (OutBufCur >= OutBufEnd)
|
||||
flush_impl();
|
||||
*OutBufCur++ = C;
|
||||
if (Unbuffered)
|
||||
flush_impl();
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
@ -91,6 +93,8 @@ public:
|
|||
if (OutBufCur >= OutBufEnd)
|
||||
flush_impl();
|
||||
*OutBufCur++ = C;
|
||||
if (Unbuffered)
|
||||
flush_impl();
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
@ -98,6 +102,8 @@ public:
|
|||
if (OutBufCur >= OutBufEnd)
|
||||
flush_impl();
|
||||
*OutBufCur++ = C;
|
||||
if (Unbuffered)
|
||||
flush_impl();
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue