diff options
Diffstat (limited to 'runtime/oat_file.cc')
-rw-r--r-- | runtime/oat_file.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/oat_file.cc b/runtime/oat_file.cc index 86c1baef27..f9cc36a0af 100644 --- a/runtime/oat_file.cc +++ b/runtime/oat_file.cc @@ -87,6 +87,11 @@ OatFile* OatFile::OpenWritable(File* file, const std::string& location, std::str return OpenElfFile(file, location, NULL, true, false, error_msg); } +OatFile* OatFile::OpenReadable(File* file, const std::string& location, std::string* error_msg) { + CheckLocation(location); + return OpenElfFile(file, location, NULL, false, false, error_msg); +} + OatFile* OatFile::OpenDlopen(const std::string& elf_filename, const std::string& location, byte* requested_base, |