about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/traits
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2020-02-10 22:30:51 +0200
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2020-10-21 04:43:57 +0300
commitfa2b381ec83556111a99750bcc7688521d7e8b0d (patch)
tree1eac177420f887852e79f82f457eeea49dfffdfd /compiler/rustc_codegen_ssa/src/traits
parent9d57c417fc1bac25b0274a34ae581c2e18a9d44e (diff)
downloadrust-fa2b381ec83556111a99750bcc7688521d7e8b0d.tar.gz
rust-fa2b381ec83556111a99750bcc7688521d7e8b0d.zip
rustc_codegen_llvm: move DISubprogram creation to a dbg_scope_fn method.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/traits')
-rw-r--r--compiler/rustc_codegen_ssa/src/traits/debuginfo.rs9
1 files changed, 9 insertions, 0 deletions
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<FunctionDebugContext<Self::DIScope>>;
 
+    // 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::Function>,
+    ) -> Self::DIScope;
+
     fn extend_scope_to_file(
         &self,
         scope_metadata: Self::DIScope,