Use dex_pc instead of line_number.
Change-Id: I3759319562428bccabccc66d7afd691682ecca55
diff --git a/src/object.cc b/src/object.cc
index 8c101ba..5413194 100644
--- a/src/object.cc
+++ b/src/object.cc
@@ -468,6 +468,7 @@
}
uint32_t Method::ToDexPC(const uintptr_t pc) const {
+#if !defined(ART_USE_LLVM_COMPILER)
const uint32_t* mapping_table = GetMappingTable();
if (mapping_table == NULL) {
DCHECK(IsNative() || IsCalleeSaveMethod() || IsProxyMethod()) << PrettyMethod(this);
@@ -491,6 +492,10 @@
}
}
return best_dex_offset;
+#else
+ // Compiler LLVM doesn't use the machine pc, we just use dex pc instead.
+ return static_cast<uint32_t>(pc);
+#endif
}
uintptr_t Method::ToNativePC(const uint32_t dex_pc) const {