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 | c2102259a04dd9ede1e7faf01daa0dfcb948c214 (patch) | |
| tree | b46670046aafb94476c925e77f7a09c758caa17f /compiler/rustc_codegen_gcc/src/debuginfo.rs | |
| parent | 4d215e2426d52ca8d1af166d5f6b5e172afbff67 (diff) | |
| download | rust-c2102259a04dd9ede1e7faf01daa0dfcb948c214.tar.gz rust-c2102259a04dd9ede1e7faf01daa0dfcb948c214.zip | |
CFI: Append debug location to CFI blocks
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/debuginfo.rs')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/debuginfo.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_gcc/src/debuginfo.rs b/compiler/rustc_codegen_gcc/src/debuginfo.rs index 9d62ccc95d5..5d8c5c199b1 100644 --- a/compiler/rustc_codegen_gcc/src/debuginfo.rs +++ b/compiler/rustc_codegen_gcc/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. |
