mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 00:39:36 +00:00
raw_ostream: unbuffered streams weren't being immediately flushed on
single character writes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66827 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
58256f83c8
commit
bcf8ea9554
@ -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…
x
Reference in New Issue
Block a user