Merge pull request #437 from rust-lang/dummy-emit-ir

Implement dummy emit=llvm-ir
This commit is contained in:
antoyo 2024-02-14 12:27:14 -05:00 committed by GitHub
commit 77b980451d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -8,3 +8,4 @@
!*gimple*
!*asm*
!.github
!config.toml

View File

@ -70,7 +70,8 @@ pub(crate) unsafe fn codegen(cgcx: &CodegenContext<GccCodegenBackend>, diag_hand
}
if config.emit_ir {
unimplemented!();
let out = cgcx.output_filenames.temp_path(OutputType::LlvmAssembly, module_name);
std::fs::write(out, "").expect("write file");
}
if config.emit_asm {