Add GetElfImages() method to CompilerLLVM.
(cherry picked from commit 950fc6e6a6b568f0cf511c092bee3d31547dc857)
Change-Id: I1ded5909bae4d87ed05b2c192fcb2362eaa37461
diff --git a/src/compiler.cc b/src/compiler.cc
index c5da125..ba8853a 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -1458,6 +1458,17 @@
const Method* method) const {
return compiler_get_method_invoke_stub_addr_(*this, cm, method);
}
+
+std::vector<ElfImage> Compiler::GetElfImages() const {
+ typedef std::vector<ElfImage> (*GetElfImagesFn)(const Compiler&);
+
+ GetElfImagesFn get_elf_images =
+ FindFunction<GetElfImagesFn>(MakeCompilerSoName(instruction_set_),
+ compiler_library_,
+ "compilerLLVMGetElfImages");
+
+ return get_elf_images(*this);
+}
#endif
} // namespace art