mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 03:07:25 +00:00

replace copypasted ModuleLlvm::parse
replaced code same as in bd36e69d25/compiler/rustc_codegen_llvm/src/lib.rs (L426-L445)
except before error message was emitted via `write::llvm_err`, which returned other error kind, but it still ok?
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.