]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_codegen_ssa/src/traits/debuginfo.rs
Rollup merge of #104498 - pierwill:stash-diag-docs, r=compiler-errors
[rust.git] / compiler / rustc_codegen_ssa / src / traits / debuginfo.rs
index f310789d1449c3ca178823e6f89bd9aa46bd0de1..63fecaf34fd5b6a09aa09bdd326b0c1331d3367c 100644 (file)
@@ -6,6 +6,8 @@
 use rustc_target::abi::call::FnAbi;
 use rustc_target::abi::Size;
 
+use std::ops::Range;
+
 pub trait DebugInfoMethods<'tcx>: BackendTypes {
     fn create_vtable_debuginfo(
         &self,
@@ -72,6 +74,9 @@ fn dbg_var_addr(
         direct_offset: Size,
         // NB: each offset implies a deref (i.e. they're steps in a pointer chain).
         indirect_offsets: &[Size],
+        // Byte range in the `dbg_var` covered by this fragment,
+        // if this is a fragment of a composite `DIVariable`.
+        fragment: Option<Range<Size>>,
     );
     fn set_dbg_loc(&mut self, dbg_loc: Self::DILocation);
     fn insert_reference_to_gdb_debug_scripts_section_global(&mut self);