Skip to content

Commit c58a9da

Browse files
committed
Rollup merge of rust-lang#32734 - tromey:dwarf-5-DW_LANG_Rust, r=michaelwoerister
Use DWARF 5 value for DW_LANG_Rust DWARF 5 has assigned a value for `DW_LANG_Rust`. See [the relevant DWARF issue](http://www.dwarfstd.org/ShowIssue.php?issue=140129.1). Although DWARF 5 is not yet released, it seems ok to use this value as both GCC and LLVM are already using other `DW_LANG_` constants assigned in this way.
2 parents 02acff6 + a0943d0 commit c58a9da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc_trans/debuginfo/metadata.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ use syntax::{ast, codemap};
5050
use syntax::parse::token;
5151

5252

53-
const DW_LANG_RUST: c_uint = 0x9000;
53+
// From DWARF 5.
54+
// See http://www.dwarfstd.org/ShowIssue.php?issue=140129.1
55+
const DW_LANG_RUST: c_uint = 0x1c;
5456
#[allow(non_upper_case_globals)]
5557
const DW_ATE_boolean: c_uint = 0x02;
5658
#[allow(non_upper_case_globals)]

0 commit comments

Comments
 (0)