summaryrefslogtreecommitdiff
path: root/compiler/file_output_stream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/file_output_stream.cc')
-rw-r--r--compiler/file_output_stream.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/file_output_stream.cc b/compiler/file_output_stream.cc
index 3ee16f53e8..bbfbdfdca8 100644
--- a/compiler/file_output_stream.cc
+++ b/compiler/file_output_stream.cc
@@ -33,4 +33,8 @@ off_t FileOutputStream::Seek(off_t offset, Whence whence) {
return lseek(file_->Fd(), offset, static_cast<int>(whence));
}
+bool FileOutputStream::Flush() {
+ return file_->Flush() == 0;
+}
+
} // namespace art