diff options
| author | Bastian Kersting <bkersting@google.com> | 2024-11-08 08:51:19 +0000 |
|---|---|---|
| committer | Bastian Kersting <bkersting@google.com> | 2024-11-11 09:17:43 +0000 |
| commit | bed136fb2d1ffec35cf2f3aba326be48a8920325 (patch) | |
| tree | 93bb7bbed7c719b07096c17eda4a415f54cff1b0 /src | |
| parent | 92c27e8b379e17400e46395b12783bccfaa8bfd6 (diff) | |
| download | rust-bed136fb2d1ffec35cf2f3aba326be48a8920325.tar.gz rust-bed136fb2d1ffec35cf2f3aba326be48a8920325.zip | |
CFI: Append debug location to CFI blocks
Diffstat (limited to 'src')
| -rw-r--r-- | src/debuginfo.rs | 4 |
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. |
