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
diff --git a/runtime/oat_quick_method_header.cc b/runtime/oat_quick_method_header.cc
index 8eef586..aa28fd8 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 @@
}
} else {
DCHECK(method->IsNative());
- return DexFile::kDexNoIndex;
+ return dex::kDexNoIndex;
}
if (abort_on_failure) {
ScopedObjectAccess soa(Thread::Current());
@@ -59,7 +60,7 @@
<< " current entry_point=" << method->GetEntryPointFromQuickCompiledCode()
<< ") in " << method->PrettyMethod();
}
- return DexFile::kDexNoIndex;
+ return dex::kDexNoIndex;
}
uintptr_t OatQuickMethodHeader::ToNativeQuickPc(ArtMethod* method,