From a802c7f2927cceb6bc87bf456bd9bee472218e27 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Fri, 17 Apr 2020 21:03:43 +0200 Subject: [PATCH] Disable line debuginfo for the AArch64 backend --- src/debuginfo/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/debuginfo/mod.rs b/src/debuginfo/mod.rs index b6eebbf482c2..967b300c0c5d 100644 --- a/src/debuginfo/mod.rs +++ b/src/debuginfo/mod.rs @@ -257,6 +257,10 @@ impl<'a, 'tcx> FunctionDebugContext<'a, 'tcx> { source_info_set: &indexmap::IndexSet, local_map: FxHashMap>, ) { + if isa.get_mach_backend().is_some() { + return; // The AArch64 backend doesn't support line debuginfo yet. + } + let end = self.create_debug_lines(context, isa, source_info_set); self.debug_context