From fa2b381ec83556111a99750bcc7688521d7e8b0d Mon Sep 17 00:00:00 2001 From: Eduard-Mihai Burtescu Date: Mon, 10 Feb 2020 22:30:51 +0200 Subject: rustc_codegen_llvm: move DISubprogram creation to a dbg_scope_fn method. --- compiler/rustc_codegen_ssa/src/traits/debuginfo.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'compiler/rustc_codegen_ssa/src') diff --git a/compiler/rustc_codegen_ssa/src/traits/debuginfo.rs b/compiler/rustc_codegen_ssa/src/traits/debuginfo.rs index 79654dc3633..3d2e0ac7be2 100644 --- a/compiler/rustc_codegen_ssa/src/traits/debuginfo.rs +++ b/compiler/rustc_codegen_ssa/src/traits/debuginfo.rs @@ -21,6 +21,15 @@ pub trait DebugInfoMethods<'tcx>: BackendTypes { mir: &mir::Body<'_>, ) -> Option>; + // FIXME(eddyb) find a common convention for all of the debuginfo-related + // names (choose between `dbg`, `debug`, `debuginfo`, `debug_info` etc.). + fn dbg_scope_fn( + &self, + instance: Instance<'tcx>, + fn_abi: &FnAbi<'tcx, Ty<'tcx>>, + maybe_definition_llfn: Option, + ) -> Self::DIScope; + fn extend_scope_to_file( &self, scope_metadata: Self::DIScope, -- cgit 1.4.1-3-g733a5