about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/interfaces/debuginfo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_codegen_llvm/interfaces/debuginfo.rs')
-rw-r--r--src/librustc_codegen_llvm/interfaces/debuginfo.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/librustc_codegen_llvm/interfaces/debuginfo.rs b/src/librustc_codegen_llvm/interfaces/debuginfo.rs
index 773c035939c..eca60e9c9ce 100644
--- a/src/librustc_codegen_llvm/interfaces/debuginfo.rs
+++ b/src/librustc_codegen_llvm/interfaces/debuginfo.rs
@@ -21,6 +21,13 @@ use syntax_pos::{SourceFile, Span};
 
 pub trait DebugInfoMethods<'tcx>: Backend<'tcx> {
     fn create_vtable_metadata(&self, ty: Ty<'tcx>, vtable: Self::Value);
+
+    /// Creates the function-specific debug context.
+    ///
+    /// Returns the FunctionDebugContext for the function which holds state needed
+    /// for debug info creation. The function may also return another variant of the
+    /// FunctionDebugContext enum which indicates why no debuginfo should be created
+    /// for the function.
     fn create_function_debug_context(
         &self,
         instance: Instance<'tcx>,
@@ -28,6 +35,7 @@ pub trait DebugInfoMethods<'tcx>: Backend<'tcx> {
         llfn: Self::Value,
         mir: &mir::Mir,
     ) -> FunctionDebugContext<Self::DIScope>;
+
     fn create_mir_scopes(
         &self,
         mir: &mir::Mir,