Skip to content

Commit

Permalink
Merge pull request rust-lang#437 from rust-lang/dummy-emit-ir
Browse files Browse the repository at this point in the history
Implement dummy emit=llvm-ir
  • Loading branch information
antoyo authored Feb 14, 2024
2 parents 826a20b + de57533 commit 77b9804
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .ignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
!*gimple*
!*asm*
!.github
!config.toml
3 changes: 2 additions & 1 deletion src/back/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 77b9804

Please sign in to comment.