Skip to content

Commit de57533

Browse files
committed
Implement dummy emit=llvm-ir
1 parent 6afabce commit de57533

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.ignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
!*gimple*
99
!*asm*
1010
!.github
11+
!config.toml

src/back/write.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ pub(crate) unsafe fn codegen(cgcx: &CodegenContext<GccCodegenBackend>, diag_hand
7070
}
7171

7272
if config.emit_ir {
73-
unimplemented!();
73+
let out = cgcx.output_filenames.temp_path(OutputType::LlvmAssembly, module_name);
74+
std::fs::write(out, "").expect("write file");
7475
}
7576

7677
if config.emit_asm {

0 commit comments

Comments
 (0)