mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
formatted_tool_output_file::close needs to flush its buffer before
closing the underlying stream. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111822 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0c4720c6bd
commit
baf2883e0a
@ -164,7 +164,12 @@ namespace llvm
|
||||
void keep() { return get_tool_output_file().keep(); }
|
||||
bool has_error() const { return get_tool_output_file().has_error(); }
|
||||
void clear_error() { return get_tool_output_file().clear_error(); }
|
||||
void close() { return get_tool_output_file().close(); }
|
||||
void close() {
|
||||
// The inner stream is unbuffered; flush the outer stream's buffer.
|
||||
flush();
|
||||
// The inner stream can close its file descriptor now.
|
||||
return get_tool_output_file().close();
|
||||
}
|
||||
};
|
||||
|
||||
/// fouts() - This returns a reference to a formatted_raw_ostream for
|
||||
|
Loading…
x
Reference in New Issue
Block a user