Skip to content

Commit 7746f15

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 0d61b6f commit 7746f15

File tree

6 files changed

+237
-353
lines changed

6 files changed

+237
-353
lines changed

Cargo.lock

+1
Original file line numberDiff line numberDiff line change
@@ -3551,6 +3551,7 @@ dependencies = [
35513551
"rustc_hir",
35523552
"rustc_index",
35533553
"rustc_llvm",
3554+
"rustc_macros",
35543555
"rustc_metadata",
35553556
"rustc_middle",
35563557
"rustc_query_system",

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)