mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
c5941a03a2
Move CrateInfo computation after codegen_crate CrateInfo is only necessary during linking and non-local LTO. Part of https://github.com/rust-lang/compiler-team/issues/908
The codegen crate contains the code to convert from MIR into LLVM IR,
and then from LLVM IR into machine code. In general it contains code
that runs towards the end of the compilation process.
For more information about how codegen works, see the rustc dev guide.