diff options
author | 2015-11-25 14:33:36 +0000 | |
---|---|---|
committer | 2015-11-30 18:19:44 +0000 | |
commit | 10c13565474de2786aad7c2e79757ea250747a15 (patch) | |
tree | 759bdf7aab97ab45e1a3e09f5d627e568f6e7084 /compiler/file_output_stream.cc | |
parent | e928dc587718d00d234768f76d1efb2ffe74e885 (diff) |
Refactor oat file writing to give Dex2Oat more control.
This is the first step towards writing dex files to oat file
and mapping them from there for the actual AOT compilation.
Change-Id: Icb0d27487eaf6ba3a66c157e695f9bdc5bb9cf9a
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 |