summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_driver-inl.h
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2015-09-03 22:11:02 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-09-03 22:11:02 +0000
commit897ce64153e4758663e464fb5fb339f9a7b496c8 (patch)
tree5685e4df884ac806e2b5cdfeabed4420015548c4 /compiler/driver/compiler_driver-inl.h
parent0526f5af91cc6b986e0b439577de0b93f9e5354c (diff)
parent736b560f2d2c89b63dc895888c671b5519afa4c8 (diff)
Merge "Reduce how often we call FindDexCache"
Diffstat (limited to 'compiler/driver/compiler_driver-inl.h')
-rw-r--r--compiler/driver/compiler_driver-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/driver/compiler_driver-inl.h b/compiler/driver/compiler_driver-inl.h
index 8f1987a7db..e535afd272 100644
--- a/compiler/driver/compiler_driver-inl.h
+++ b/compiler/driver/compiler_driver-inl.h
@@ -34,7 +34,7 @@ inline mirror::DexCache* CompilerDriver::GetDexCache(const DexCompilationUnit* m
return mUnit->GetClassLinker()->FindDexCache(Thread::Current(), *mUnit->GetDexFile(), false);
}
-inline mirror::ClassLoader* CompilerDriver::GetClassLoader(ScopedObjectAccess& soa,
+inline mirror::ClassLoader* CompilerDriver::GetClassLoader(const ScopedObjectAccess& soa,
const DexCompilationUnit* mUnit) {
return soa.Decode<mirror::ClassLoader*>(mUnit->GetClassLoader());
}