diff options
author | 2017-09-15 11:59:26 -0700 | |
---|---|---|
committer | 2017-09-18 11:36:24 -0700 | |
commit | e2abbc604ce003c776c00ecf1293796bb4c4ac5a (patch) | |
tree | f7d124d1861cad2162c30dfe932bb4e1beaf41ef /runtime/oat_quick_method_header.cc | |
parent | 7090dfe84f78b1928fcbdfd664d0dd9ea52633ff (diff) |
ART: Move kDexNoIndex to dex_file_types.h
Define the constant with the types to allow lowering the dependency
on DexFile.
Test: m
Change-Id: I3c61421db45be96d2057e01b1a7825883d8bd178
Diffstat (limited to 'runtime/oat_quick_method_header.cc')
-rw-r--r-- | runtime/oat_quick_method_header.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/oat_quick_method_header.cc b/runtime/oat_quick_method_header.cc index 8eef5867e2..aa28fd8c9b 100644 --- a/runtime/oat_quick_method_header.cc +++ b/runtime/oat_quick_method_header.cc @@ -17,6 +17,7 @@ #include "oat_quick_method_header.h" #include "art_method.h" +#include "dex_file_types.h" #include "scoped_thread_state_change-inl.h" #include "thread.h" @@ -49,7 +50,7 @@ uint32_t OatQuickMethodHeader::ToDexPc(ArtMethod* method, } } else { DCHECK(method->IsNative()); - return DexFile::kDexNoIndex; + return dex::kDexNoIndex; } if (abort_on_failure) { ScopedObjectAccess soa(Thread::Current()); @@ -59,7 +60,7 @@ uint32_t OatQuickMethodHeader::ToDexPc(ArtMethod* method, << " current entry_point=" << method->GetEntryPointFromQuickCompiledCode() << ") in " << method->PrettyMethod(); } - return DexFile::kDexNoIndex; + return dex::kDexNoIndex; } uintptr_t OatQuickMethodHeader::ToNativeQuickPc(ArtMethod* method, |