summaryrefslogtreecommitdiff
path: root/runtime/oat_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/oat_file.h')
-rw-r--r--runtime/oat_file.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/oat_file.h b/runtime/oat_file.h
index fdb4217fd5..d52723a98e 100644
--- a/runtime/oat_file.h
+++ b/runtime/oat_file.h
@@ -39,6 +39,7 @@ namespace art {
class BitVector;
class DexFile;
+class ClassLoaderContext;
class ElfFile;
class DexLayoutSections;
template <class MirrorType> class GcRoot;
@@ -162,13 +163,15 @@ class OatFile {
// the vdex does not have a dex section and accepts a vector of DexFiles separately.
static OatFile* OpenFromVdex(const std::vector<const DexFile*>& dex_files,
std::unique_ptr<VdexFile>&& vdex_file,
- const std::string& location);
+ const std::string& location,
+ ClassLoaderContext* context);
// Initialize OatFile instance from an already loaded VdexFile. The dex files
// will be opened through `zip_fd` or `dex_location` if `zip_fd` is -1.
static OatFile* OpenFromVdex(int zip_fd,
std::unique_ptr<VdexFile>&& vdex_file,
const std::string& location,
+ ClassLoaderContext* context,
std::string* error_msg);
// Return whether the `OatFile` uses a vdex-only file.