about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBastian Kersting <bkersting@google.com>2024-11-08 08:51:19 +0000
committerBastian Kersting <bkersting@google.com>2024-11-11 09:17:43 +0000
commitbed136fb2d1ffec35cf2f3aba326be48a8920325 (patch)
tree93bb7bbed7c719b07096c17eda4a415f54cff1b0 /src
parent92c27e8b379e17400e46395b12783bccfaa8bfd6 (diff)
downloadrust-bed136fb2d1ffec35cf2f3aba326be48a8920325.tar.gz
rust-bed136fb2d1ffec35cf2f3aba326be48a8920325.zip
CFI: Append debug location to CFI blocks
Diffstat (limited to 'src')
-rw-r--r--src/debuginfo.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/debuginfo.rs b/src/debuginfo.rs
index 9d62ccc95d5..5d8c5c199b1 100644
--- a/src/debuginfo.rs
+++ b/src/debuginfo.rs
@@ -52,6 +52,10 @@ impl<'a, 'gcc, 'tcx> DebugInfoBuilderMethods for Builder<'a, 'gcc, 'tcx> {
     fn clear_dbg_loc(&mut self) {
         self.location = None;
     }
+
+    fn get_dbg_loc(&self) -> Option<Self::DILocation> {
+        self.location
+    }
 }
 
 /// Generate the `debug_context` in an MIR Body.