mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
The direct dependency from `rustc_codegen_ssa` to `rustc_mir_transform` allowed codegen to reuse some MIR-transform code for identifying unnecessary landing pads. However, we can achieve the same result by calling through a hook on `TyCtxt`, eliminating the crate dependency.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.