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/check_reference_map_visitor.h b/runtime/check_reference_map_visitor.h
index f6c8fa9..d9e8915 100644
--- a/runtime/check_reference_map_visitor.h
+++ b/runtime/check_reference_map_visitor.h
@@ -18,6 +18,7 @@
#define ART_RUNTIME_CHECK_REFERENCE_MAP_VISITOR_H_
#include "art_method-inl.h"
+#include "dex_file_types.h"
#include "oat_quick_method_header.h"
#include "scoped_thread_state_change-inl.h"
#include "stack.h"
@@ -35,7 +36,7 @@
bool VisitFrame() REQUIRES_SHARED(Locks::mutator_lock_) {
ArtMethod* m = GetMethod();
if (m->IsCalleeSaveMethod() || m->IsNative()) {
- CHECK_EQ(GetDexPc(), DexFile::kDexNoIndex);
+ CHECK_EQ(GetDexPc(), dex::kDexNoIndex);
}
if (m == nullptr || m->IsNative() || m->IsRuntimeMethod() || IsShadowFrame()) {