Skip to content
/ rust Public
forked from rust-lang/rust

Commit f50721e

Browse files
committed
Explain why the DW_TAG_* constants remain as-is for now
1 parent 1b62645 commit f50721e

File tree

1 file changed

+4
-0
lines changed
  • compiler/rustc_codegen_llvm/src/debuginfo

1 file changed

+4
-0
lines changed

compiler/rustc_codegen_llvm/src/debuginfo/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ mod utils;
4848
use self::create_scope_map::compute_mir_scopes;
4949
pub(crate) use self::metadata::build_global_var_di_node;
5050

51+
// FIXME(Zalathar): These `DW_TAG_*` constants are fake values that were
52+
// removed from LLVM in 2015, and are only used by our own `RustWrapper.cpp`
53+
// to decide which C++ API to call. Instead, we should just have two separate
54+
// FFI functions and choose the correct one on the Rust side.
5155
#[allow(non_upper_case_globals)]
5256
const DW_TAG_auto_variable: c_uint = 0x100;
5357
#[allow(non_upper_case_globals)]

0 commit comments

Comments
 (0)