rust/compiler
Patrick Walton c41fd760db rustc_codegen_llvm: Give each codegen unit a unique DWARF name on all
platforms, not just Apple ones.

To avoid breaking split DWARF, we need to ensure that each codegen unit has a
unique `DW_AT_name`. This is because there's a remote chance that different
codegen units for the same module will have entirely identical DWARF entries
for the purpose of the DWO ID, which would violate Appendix F ("Split Dwarf
Object Files") of the DWARF 5 specification. LLVM uses the algorithm specified
in section 7.32 "Type Signature Computation" to compute the DWO ID, which does
not include any fields that would distinguish compilation units. So we must
embed the codegen unit name into the `DW_AT_name`.

Closes #88521.
2021-12-16 20:40:04 -08:00
..
rustc
rustc_apfloat Stabilize iter::zip. 2021-12-14 18:50:31 -04:00
rustc_arena Add some comments. 2021-11-19 07:52:59 +11:00
rustc_ast Auto merge of #91945 - matthiaskrgr:rollup-jszf9zp, r=matthiaskrgr 2021-12-15 03:28:55 +00:00
rustc_ast_lowering Rollup merge of #91888 - BoxyUwU:generic_arg_infer_aaaa, r=lcnr 2021-12-15 08:36:23 +01:00
rustc_ast_passes Stabilize destructuring_assignment 2021-12-14 22:38:51 -05:00
rustc_ast_pretty Rollup merge of #91625 - est31:remove_indexes, r=oli-obk 2021-12-10 22:40:36 +01:00
rustc_attr re-format with new rustfmt 2021-11-30 13:08:41 -05:00
rustc_borrowck Stabilize iter::zip. 2021-12-14 18:50:31 -04:00
rustc_builtin_macros Rollup merge of #91881 - Patrick-Poitras:stabilize-iter-zip, r=scottmcm 2021-12-15 01:28:08 +01:00
rustc_codegen_cranelift Rollup merge of #91868 - tmiasko:llvm-time-trace-out, r=oli-obk 2021-12-15 01:28:06 +01:00
rustc_codegen_gcc Rollup merge of #91868 - tmiasko:llvm-time-trace-out, r=oli-obk 2021-12-15 01:28:06 +01:00
rustc_codegen_llvm rustc_codegen_llvm: Give each codegen unit a unique DWARF name on all 2021-12-16 20:40:04 -08:00
rustc_codegen_ssa Rollup merge of #91885 - LegionMammal978:less-inband-codegen_ssa, r=workingjubilee 2021-12-15 10:56:59 +01:00
rustc_const_eval Auto merge of #91945 - matthiaskrgr:rollup-jszf9zp, r=matthiaskrgr 2021-12-15 03:28:55 +00:00
rustc_data_structures Auto merge of #91549 - fee1-dead:const_env, r=spastorino 2021-12-12 22:15:32 +00:00
rustc_driver fix clippy::single_char_pattern perf findings 2021-12-14 12:40:28 +01:00
rustc_error_codes Clarify and tidy up explanation of E0038 2021-11-30 09:25:17 -08:00
rustc_errors Stabilize iter::zip. 2021-12-14 18:50:31 -04:00
rustc_expand Rollup merge of #90521 - jhpratt:stabilize-destructuring_assignment, r=jackh726,pnkfelix 2021-12-15 08:36:19 +01:00
rustc_feature Stabilize destructuring_assignment 2021-12-14 22:38:51 -05:00
rustc_fs_util
rustc_graphviz fix clippy::single_char_pattern perf findings 2021-12-14 12:40:28 +01:00
rustc_hir Rollup merge of #91888 - BoxyUwU:generic_arg_infer_aaaa, r=lcnr 2021-12-15 08:36:23 +01:00
rustc_hir_pretty Keep info on pre-desugaring expression for better "incorrect .await" suggestion 2021-12-13 17:09:16 +00:00
rustc_incremental Rollup merge of #91625 - est31:remove_indexes, r=oli-obk 2021-12-10 22:40:36 +01:00
rustc_index Stabilize iter::zip. 2021-12-14 18:50:31 -04:00
rustc_infer Stabilize iter::zip. 2021-12-14 18:50:31 -04:00
rustc_interface Rollup merge of #91880 - matthiaskrgr:clippy_perf_dec, r=jyn514 2021-12-15 10:56:58 +01:00
rustc_lexer Auto merge of #91393 - Julian-Wollersberger:lexer_optimization, r=petrochenkov 2021-12-03 13:20:14 +00:00
rustc_lint Rollup merge of #91881 - Patrick-Poitras:stabilize-iter-zip, r=scottmcm 2021-12-15 01:28:08 +01:00
rustc_lint_defs Disable asm lint example tests since they only work on x86_64 2021-12-14 11:48:28 +00:00
rustc_llvm Auto merge of #91284 - t6:freebsd-riscv64, r=Amanieu 2021-12-06 03:51:05 +00:00
rustc_macros Query modifier 2021-12-12 12:35:00 +08:00
rustc_metadata Auto merge of #90716 - euclio:libloading, r=cjgillot 2021-12-12 17:28:52 +00:00
rustc_middle Rollup merge of #91920 - Aaron1011:pred-stable-cmp, r=oli-obk 2021-12-15 10:57:04 +01:00
rustc_mir_build Stabilize iter::zip. 2021-12-14 18:50:31 -04:00
rustc_mir_dataflow Stabilize iter::zip. 2021-12-14 18:50:31 -04:00
rustc_mir_transform Rollup merge of #91880 - matthiaskrgr:clippy_perf_dec, r=jyn514 2021-12-15 10:56:58 +01:00
rustc_monomorphize Rollup merge of #90701 - michaelwoerister:more-artifact-sizes, r=davidtwco 2021-11-09 19:00:45 +01:00
rustc_parse Auto merge of #91962 - matthiaskrgr:rollup-2g082jw, r=matthiaskrgr 2021-12-15 12:41:42 +00:00
rustc_parse_format
rustc_passes Rollup merge of #91881 - Patrick-Poitras:stabilize-iter-zip, r=scottmcm 2021-12-15 01:28:08 +01:00
rustc_plugin_impl replace dynamic library module with libloading 2021-12-06 12:03:47 -05:00
rustc_privacy Take a LocalDefId in expect_*item. 2021-11-28 21:09:45 +01:00
rustc_query_impl Query modifier 2021-12-12 12:35:00 +08:00
rustc_query_system Stabilize iter::zip. 2021-12-14 18:50:31 -04:00
rustc_resolve Rollup merge of #91888 - BoxyUwU:generic_arg_infer_aaaa, r=lcnr 2021-12-15 08:36:23 +01:00
rustc_save_analysis Rollup merge of #91880 - matthiaskrgr:clippy_perf_dec, r=jyn514 2021-12-15 10:56:58 +01:00
rustc_serialize Auto merge of #91626 - klensy:json-less-alloc, r=petrochenkov 2021-12-13 07:30:38 +00:00
rustc_session fix clippy::single_char_pattern perf findings 2021-12-14 12:40:28 +01:00
rustc_span Auto merge of #91660 - llogiq:make-a-hash-of-def-ids, r=nnethercote 2021-12-14 01:39:01 +00:00
rustc_symbol_mangling Stabilize iter::zip. 2021-12-14 18:50:31 -04:00
rustc_target Revert "Set MACOSX_DEPLOYMENT_TARGET env var to default for linking if not set." 2021-12-13 21:31:48 +01:00
rustc_trait_selection Rollup merge of #91880 - matthiaskrgr:clippy_perf_dec, r=jyn514 2021-12-15 10:56:58 +01:00
rustc_traits Reduce boilerplate around infallible folders 2021-12-02 16:14:16 +00:00
rustc_ty_utils Revert "Auto merge of #91491 - spastorino:revert-91354, r=oli-obk" 2021-12-12 12:34:46 +08:00
rustc_type_ir Fix HashStable implementation on InferTy 2021-12-13 20:36:17 -08:00
rustc_typeck Rollup merge of #90521 - jhpratt:stabilize-destructuring_assignment, r=jackh726,pnkfelix 2021-12-15 08:36:19 +01:00