diff options
author | 2015-12-01 10:16:19 +0000 | |
---|---|---|
committer | 2015-12-01 10:16:19 +0000 | |
commit | d1744d449cf2b56af7e0896b3729fac2a414e3af (patch) | |
tree | cd23e1e0a3cea10cc9a9ae8269a01f75ada8ef0e /compiler/file_output_stream.cc | |
parent | e51e3f988ba91f0469757738fa55f835e16e37d9 (diff) | |
parent | 10c13565474de2786aad7c2e79757ea250747a15 (diff) |
Merge "Refactor oat file writing to give Dex2Oat more control."
Diffstat (limited to 'compiler/file_output_stream.cc')
-rw-r--r-- | compiler/file_output_stream.cc | 4 |
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 |