mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-03 09:32:42 +00:00
cg_llvm: Make the LLVM version-check bindings safe - Follow-up to https://github.com/rust-lang/rust/pull/161788 --- These version-check functions should always be safe to call, so marking them `safe` avoids some unsafe blocks at call sites. There should be no change to compiler behaviour.
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.