diff options
author | 2012-06-06 11:01:00 +0800 | |
---|---|---|
committer | 2012-06-06 21:22:11 -0700 | |
commit | 7a2a23a44d27f769718e28327af671f4e486c49a (patch) | |
tree | 345a05da812927dafe13af82a4926257c3b368e9 /src/class_linker.cc | |
parent | 95dfa6a8c522ad84a492d88666ea69fe7a3852c5 (diff) |
Cleanup proxy stub compiler code.
Change-Id: I2a5815cc2a38f5cea9e9c36e5e6db92c1a861eaa
Diffstat (limited to 'src/class_linker.cc')
-rw-r--r-- | src/class_linker.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/class_linker.cc b/src/class_linker.cc index 3280410ce6..4133a861bf 100644 --- a/src/class_linker.cc +++ b/src/class_linker.cc @@ -1346,9 +1346,6 @@ void ClassLinker::LinkOatCodeFor(Method* method) { } if (method->GetInvokeStub() == NULL) { method->SetInvokeStub(oat_method.GetInvokeStub()); -#if defined(ART_USE_LLVM_COMPILER) - method->SetProxyStub(oat_method.GetProxyStub()); -#endif } } } @@ -2309,7 +2306,8 @@ Method* ClassLinker::CreateProxyMethod(SirtRef<Class>& klass, SirtRef<Method>& p #if !defined(ART_USE_LLVM_COMPILER) method->SetCode(reinterpret_cast<void*>(art_proxy_invoke_handler)); #else - method->SetCode(prototype->GetProxyStub()); + OatFile::OatMethod oat_method = GetOatMethodFor(prototype.get()); + method->SetCode(oat_method.GetProxyStub()); #endif return method; |