Implement dummy emit=llvm-ir

This commit is contained in:
Antoni Boucher 2024-02-12 20:15:12 -04:00
parent 6afabceaa6
commit de57533e56
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -70,7 +70,8 @@ pub(crate) unsafe fn codegen(cgcx: &CodegenContext<GccCodegenBackend>, diag_hand
} }
if config.emit_ir { 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 { if config.emit_asm {