Implement DexFile_isDexOptNeeded

Change-Id: Ib4d641ca7000b0f563cb9ab9c0970d6b8ad92060
diff --git a/src/class_linker.h b/src/class_linker.h
index 7c5acaa..e74494e 100644
--- a/src/class_linker.h
+++ b/src/class_linker.h
@@ -207,6 +207,9 @@
   const DexFile& FindDexFile(const DexCache* dex_cache) const;
   DexCache* FindDexCache(const DexFile& dex_file) const;
   bool IsDexFileRegistered(const DexFile& dex_file) const;
+
+  // Find, possibily opening, an OatFile corresponding to a DexFile
+  const OatFile* FindOatFile(const DexFile& dex_file);
   const OatFile* FindOatFile(const std::string& location);
 
   // TODO: replace this with multiple methods that allocate the correct managed type.
@@ -299,9 +302,6 @@
   void RegisterDexFileLocked(const DexFile& dex_file, DexCache* dex_cache);
   bool IsDexFileRegisteredLocked(const DexFile& dex_file) const;
 
-  // Find, possibily opening, an OatFile corresponding to a DexFile
-  const OatFile* FindOatFile(const DexFile& dex_file);
-
   bool InitializeClass(Class* klass, bool can_run_clinit);
   bool WaitForInitializeClass(Class* klass, Thread* self, ObjectLock& lock);
   bool ValidateSuperClassDescriptors(const Class* klass);