Implement X86 trampoline for llvm compiler.
Change-Id: I0c6ec3a59eaebd5e28ca8e95f2711a31b79b9279
diff --git a/src/class_linker.cc b/src/class_linker.cc
index 1edfe1a..5bd214a 100644
--- a/src/class_linker.cc
+++ b/src/class_linker.cc
@@ -1401,7 +1401,13 @@
// back.
// TODO: Remove this workaround.
- GetOatMethodFor(method).LinkMethodPointers(method);
+ OatFile::OatMethod oat_method = GetOatMethodFor(method);
+ if (method->GetCode() == NULL) {
+ method->SetCode(oat_method.GetCode());
+ }
+ if (method->GetInvokeStub() == NULL) {
+ method->SetInvokeStub(oat_method.GetInvokeStub());
+ }
}
}