diff options
author | Vladimir Marko <vmarko@google.com> | 2017-07-04 13:51:09 +0100 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2017-07-04 13:54:37 +0100 |
commit | 4913cf39dc3a15211e3a13bdc685541babc93d6d (patch) | |
tree | 1891acc19e3f8fc6f9e12771bb0e21a696552317 /compiler/driver/compiler_driver-inl.h | |
parent | 4dd8880401bc7cd7bc748e5f828771611aa7bdc1 (diff) |
Remove obsolete helpers from CompilerDriver.
Test: Rely on TreeHugger.
Change-Id: Id177ed422353a8606c3e57d34e1519e6b17e5c48
Diffstat (limited to 'compiler/driver/compiler_driver-inl.h')
-rw-r--r-- | compiler/driver/compiler_driver-inl.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/compiler/driver/compiler_driver-inl.h b/compiler/driver/compiler_driver-inl.h index 8cc1cc38e2..a04349e392 100644 --- a/compiler/driver/compiler_driver-inl.h +++ b/compiler/driver/compiler_driver-inl.h @@ -102,35 +102,6 @@ inline std::pair<bool, bool> CompilerDriver::IsFastInstanceField( return std::make_pair(fast_get, fast_put); } -template <typename ArtMember> -inline bool CompilerDriver::CanAccessResolvedMember(mirror::Class* referrer_class ATTRIBUTE_UNUSED, - mirror::Class* access_to ATTRIBUTE_UNUSED, - ArtMember* member ATTRIBUTE_UNUSED, - mirror::DexCache* dex_cache ATTRIBUTE_UNUSED, - uint32_t field_idx ATTRIBUTE_UNUSED) { - // Not defined for ArtMember values other than ArtField or ArtMethod. - UNREACHABLE(); -} - -template <> -inline bool CompilerDriver::CanAccessResolvedMember<ArtField>(mirror::Class* referrer_class, - mirror::Class* access_to, - ArtField* field, - mirror::DexCache* dex_cache, - uint32_t field_idx) { - return referrer_class->CanAccessResolvedField(access_to, field, dex_cache, field_idx); -} - -template <> -inline bool CompilerDriver::CanAccessResolvedMember<ArtMethod>( - mirror::Class* referrer_class, - mirror::Class* access_to, - ArtMethod* method, - mirror::DexCache* dex_cache, - uint32_t field_idx) { - return referrer_class->CanAccessResolvedMethod(access_to, method, dex_cache, field_idx); -} - inline ArtMethod* CompilerDriver::ResolveMethod( ScopedObjectAccess& soa, Handle<mirror::DexCache> dex_cache, Handle<mirror::ClassLoader> class_loader, const DexCompilationUnit* mUnit, |