about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/debuginfo/dwarf_const.rs
diff options
context:
space:
mode:
authordianqk <dianqk@dianqk.net>2025-06-18 22:04:48 +0800
committerdianqk <dianqk@dianqk.net>2025-10-02 14:55:51 +0800
commit1bd89bd42e0bb6f29b8af5d6bdf3f756196bb8ee (patch)
tree8d7ac71c287300c9ce4f2b3a1cfbe05b998bf9ae /compiler/rustc_codegen_llvm/src/debuginfo/dwarf_const.rs
parent85b2f706939528b5796d98e82c183637f8338cd1 (diff)
downloadrust-1bd89bd42e0bb6f29b8af5d6bdf3f756196bb8ee.tar.gz
rust-1bd89bd42e0bb6f29b8af5d6bdf3f756196bb8ee.zip
codegen: Generate `dbg_value` for the ref statement
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo/dwarf_const.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/debuginfo/dwarf_const.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/dwarf_const.rs b/compiler/rustc_codegen_llvm/src/debuginfo/dwarf_const.rs
index 40842915222..52d04625749 100644
--- a/compiler/rustc_codegen_llvm/src/debuginfo/dwarf_const.rs
+++ b/compiler/rustc_codegen_llvm/src/debuginfo/dwarf_const.rs
@@ -35,3 +35,6 @@ declare_constant!(DW_OP_plus_uconst: u64);
 /// Double-checked by a static assertion in `RustWrapper.cpp`.
 #[allow(non_upper_case_globals)]
 pub(crate) const DW_OP_LLVM_fragment: u64 = 0x1000;
+// It describes the actual value of a source variable which might not exist in registers or in memory.
+#[allow(non_upper_case_globals)]
+pub(crate) const DW_OP_stack_value: u64 = 0x9f;