mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 09:31:59 +08:00
Add a method to StreamFile to line buffer the file. Use that in "log enable -f file" to line buffer the log output.
llvm-svn: 124107
This commit is contained in:
@@ -94,6 +94,13 @@ StreamFile::Open (const char *path, const char *permissions)
|
||||
return m_file != NULL;
|
||||
}
|
||||
|
||||
void
|
||||
StreamFile::SetLineBuffered ()
|
||||
{
|
||||
if (m_file != NULL)
|
||||
setlinebuf (m_file);
|
||||
}
|
||||
|
||||
void
|
||||
StreamFile::Flush ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user