about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2025-01-05 12:31:41 +1100
committerZalathar <Zalathar@users.noreply.github.com>2025-01-05 22:16:49 +1100
commitf50721ebadf8e2c2940bc9334926dc20f87ff22d (patch)
treeed6b54c60d8e46a42dc88f19a9892beb52c2f0c8 /compiler/rustc_codegen_llvm/src
parent1b62645418c40b663c1726131837d68fa575f15c (diff)
downloadrust-f50721ebadf8e2c2940bc9334926dc20f87ff22d.tar.gz
rust-f50721ebadf8e2c2940bc9334926dc20f87ff22d.zip
Explain why the `DW_TAG_*` constants remain as-is for now
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/debuginfo/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs b/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs
index cb18f3cd78b..755f4816acf 100644
--- a/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs
+++ b/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs
@@ -48,6 +48,10 @@ mod utils;
 use self::create_scope_map::compute_mir_scopes;
 pub(crate) use self::metadata::build_global_var_di_node;
 
+// FIXME(Zalathar): These `DW_TAG_*` constants are fake values that were
+// removed from LLVM in 2015, and are only used by our own `RustWrapper.cpp`
+// to decide which C++ API to call. Instead, we should just have two separate
+// FFI functions and choose the correct one on the Rust side.
 #[allow(non_upper_case_globals)]
 const DW_TAG_auto_variable: c_uint = 0x100;
 #[allow(non_upper_case_globals)]