Skip to content

Commit e72e639

Browse files
debuginfo: Simplify TypeMap used during LLVM debuginfo generation.
The previous implementation was written before types were properly normalized for code generation and had to assume a more complicated relationship between types and their debuginfo -- generating separate identifiers for debuginfo nodes that were based on normalized types. Since types are now already normalized, we can use them as identifiers for debuginfo nodes.
1 parent 026d8ce commit e72e639

File tree

6 files changed

+238
-351
lines changed

6 files changed

+238
-351
lines changed

Diff for: Cargo.lock

+1
Original file line numberDiff line numberDiff line change
@@ -3524,6 +3524,7 @@ dependencies = [
35243524
"rustc_hir",
35253525
"rustc_index",
35263526
"rustc_llvm",
3527+
"rustc_macros",
35273528
"rustc_metadata",
35283529
"rustc_middle",
35293530
"rustc_query_system",

Diff for: compiler/rustc_codegen_llvm/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ rustc_fs_util = { path = "../rustc_fs_util" }
2525
rustc_hir = { path = "../rustc_hir" }
2626
rustc_index = { path = "../rustc_index" }
2727
rustc_llvm = { path = "../rustc_llvm" }
28+
rustc_macros = { path = "../rustc_macros" }
2829
rustc_metadata = { path = "../rustc_metadata" }
2930
rustc_query_system = { path = "../rustc_query_system" }
3031
rustc_session = { path = "../rustc_session" }

0 commit comments

Comments
 (0)