Working ClassLoader
Change-Id: Ia1122165e47f846a1d4506111849f830d9f14c1b
diff --git a/src/image.h b/src/image.h
index 86b71e1..76db7e5 100644
--- a/src/image.h
+++ b/src/image.h
@@ -81,10 +81,14 @@
};
Object* GetImageRoot(ImageRoot image_root) const {
- return reinterpret_cast<ObjectArray<Object>*>(image_roots_)->Get(image_root);
+ return GetImageRoots()->Get(image_root);
}
private:
+ ObjectArray<Object>* GetImageRoots() const {
+ return reinterpret_cast<ObjectArray<Object>*>(image_roots_);
+ }
+
static const byte kImageMagic[4];
static const byte kImageVersion[4];
@@ -107,6 +111,7 @@
uint32_t image_roots_;
friend class ImageWriter;
+ friend class ImageDump; // For GetImageRoots()
};
} // namespace art