Add ElfImage to hold ELF image address and size.
(cherry picked from commit 578763dc6630156b163933720a85f8d34cbab652)
Change-Id: I76d03130eabb100869ea941c9e4fd92cc9244eeb
diff --git a/src/compiler_llvm/elf_loader.h b/src/compiler_llvm/elf_loader.h
index 5f7ab86..5c8063a 100644
--- a/src/compiler_llvm/elf_loader.h
+++ b/src/compiler_llvm/elf_loader.h
@@ -17,6 +17,7 @@
#ifndef ART_SRC_COMPILER_LLVM_ELF_LOADER_H_
#define ART_SRC_COMPILER_LLVM_ELF_LOADER_H_
+#include "elf_image.h"
#include "globals.h"
#include "object.h"
@@ -34,7 +35,7 @@
public:
~ElfLoader();
- bool LoadElfAt(size_t elf_idx, const byte* addr, size_t size);
+ bool LoadElfAt(size_t elf_idx, const ElfImage& elf_image);
const void* GetMethodCodeAddr(size_t elf_idx, const Method* method) const;