File tree 2 files changed +5
-3
lines changed
rustc_codegen_llvm/src/debuginfo
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ mod utils;
48
48
use self :: create_scope_map:: compute_mir_scopes;
49
49
pub ( crate ) use self :: metadata:: build_global_var_di_node;
50
50
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.
51
55
#[ allow( non_upper_case_globals) ]
52
56
const DW_TAG_auto_variable : c_uint = 0x100 ;
53
57
#[ allow( non_upper_case_globals) ]
Original file line number Diff line number Diff line change @@ -56,9 +56,7 @@ using namespace llvm::object;
56
56
57
57
// This opcode is an LLVM detail that could hypothetically change, so verify
58
58
// that the hard-coded value in `dwarf_const.rs` still agrees with LLVM.
59
- static_assert (
60
- dwarf::DW_OP_LLVM_fragment == 0x1000 ,
61
- " DW_OP_LLVM_fragment has changed from the value used by Rust-side code" );
59
+ static_assert (dwarf::DW_OP_LLVM_fragment == 0x1000 );
62
60
63
61
// LLVMAtomicOrdering is already an enum - don't create another
64
62
// one.
You can’t perform that action at this time.
0 commit comments