Move old dex file creation logic to oat file creation

Change-Id: I643adaf918c00bd38c3e85d7622d30b06eab1c68
diff --git a/src/class_linker.h b/src/class_linker.h
index d735515..2c94a93 100644
--- a/src/class_linker.h
+++ b/src/class_linker.h
@@ -243,7 +243,9 @@
   bool IsDexFileRegistered(const DexFile& dex_file) const;
 
   // Generate an oat file from a dex file
-  const OatFile* GenerateOatFile(const std::string& filename);
+  bool GenerateOatFile(const std::string& dex_filename,
+                       int oat_fd,
+                       const std::string& oat_cache_filename);
 
   // Find, possibily opening, an OatFile corresponding to a DexFile
   const OatFile* FindOatFileForDexFile(const DexFile& dex_file);