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.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'compiler/file_output_stream.h') diff --git a/compiler/file_output_stream.h b/compiler/file_output_stream.h index 9dfbd7fcef..6917d83f29 100644 --- a/compiler/file_output_stream.h +++ b/compiler/file_output_stream.h @@ -27,11 +27,13 @@ class FileOutputStream FINAL : public OutputStream { public: explicit FileOutputStream(File* file); - virtual ~FileOutputStream() {} + ~FileOutputStream() OVERRIDE {} - virtual bool WriteFully(const void* buffer, size_t byte_count); + bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE; - virtual off_t Seek(off_t offset, Whence whence); + off_t Seek(off_t offset, Whence whence) OVERRIDE; + + bool Flush() OVERRIDE; private: File* const file_; -- cgit v1.2.3-59-g8ed1b