From 10c13565474de2786aad7c2e79757ea250747a15 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Wed, 25 Nov 2015 14:33:36 +0000 Subject: 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 --- compiler/file_output_stream.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compiler/file_output_stream.cc') 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(whence)); } +bool FileOutputStream::Flush() { + return file_->Flush() == 0; +} + } // namespace art -- cgit v1.2.3-59-g8ed1b