Add ELF index to art::CompiledMethod.
(cherry picked from commit fd9514dbab8eaca357b6d712bb7e1b635617f92e)
Change-Id: I79bff6bf9d05ce6ffc25c3cef41d1acefc4d8d2a
diff --git a/src/compiler_llvm/jni_compiler.cc b/src/compiler_llvm/jni_compiler.cc
index 6cccbe1..ad730dc 100644
--- a/src/compiler_llvm/jni_compiler.cc
+++ b/src/compiler_llvm/jni_compiler.cc
@@ -253,7 +253,8 @@
// Verify the generated bitcode
llvm::verifyFunction(*func_, llvm::PrintMessageAction);
- return new CompiledMethod(cunit_->GetInstructionSet(), func_);
+ return new CompiledMethod(cunit_->GetInstructionSet(),
+ cunit_->GetElfIndex());
}