summaryrefslogtreecommitdiff
path: root/runtime/fault_handler.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2017-09-15 11:59:26 -0700
committer Andreas Gampe <agampe@google.com> 2017-09-18 11:36:24 -0700
commite2abbc604ce003c776c00ecf1293796bb4c4ac5a (patch)
treef7d124d1861cad2162c30dfe932bb4e1beaf41ef /runtime/fault_handler.cc
parent7090dfe84f78b1928fcbdfd664d0dd9ea52633ff (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/fault_handler.cc')
-rw-r--r--runtime/fault_handler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/fault_handler.cc b/runtime/fault_handler.cc
index 7d01af02a3..6a4e5b5f01 100644
--- a/runtime/fault_handler.cc
+++ b/runtime/fault_handler.cc
@@ -23,6 +23,7 @@
#include "art_method-inl.h"
#include "base/safe_copy.h"
#include "base/stl_util.h"
+#include "dex_file_types.h"
#include "mirror/class.h"
#include "mirror/object_reference.h"
#include "oat_quick_method_header.h"
@@ -311,7 +312,7 @@ bool FaultManager::IsInGeneratedCode(siginfo_t* siginfo, void* context, bool che
}
uint32_t dexpc = method_header->ToDexPc(method_obj, return_pc, false);
VLOG(signals) << "dexpc: " << dexpc;
- return !check_dex_pc || dexpc != DexFile::kDexNoIndex;
+ return !check_dex_pc || dexpc != dex::kDexNoIndex;
}
FaultHandler::FaultHandler(FaultManager* manager) : manager_(manager) {