Remove the use of Method from jni_compiler
Change-Id: Ibf1c72a806e7f1ba7a2d83960c3d57f41937d336
diff --git a/src/dex2oat.cc b/src/dex2oat.cc
index bcce5b6..6cf6df6 100644
--- a/src/dex2oat.cc
+++ b/src/dex2oat.cc
@@ -282,8 +282,8 @@
}
// if we loaded an existing image, we will reuse values from the image roots.
- if (!runtime->HasJniStubArray()) {
- runtime->SetJniStubArray(JniCompiler::CreateJniStub(kThumb2));
+ if (!runtime->HasJniDlsymLookupStub()) {
+ runtime->SetJniDlsymLookupStub(Compiler::CreateJniDlysmLookupStub(kThumb2));
}
if (!runtime->HasAbstractMethodErrorStubArray()) {
runtime->SetAbstractMethodErrorStubArray(Compiler::CreateAbstractMethodErrorStub(kThumb2));