diff options
| author | antoyo <antoyo@users.noreply.github.com> | 2024-02-14 12:27:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-14 12:27:14 -0500 |
| commit | 77b980451d5f5a4af94baefe30ff70fd009ca7e2 (patch) | |
| tree | ce51221b9a0d7483d458bff84a42b7971f4b2689 /src | |
| parent | 826a20be1da6869e8d7ae9759bb640252e38a799 (diff) | |
| parent | de57533e5644335eccd8c1430b4c60295a0b922c (diff) | |
| download | rust-77b980451d5f5a4af94baefe30ff70fd009ca7e2.tar.gz rust-77b980451d5f5a4af94baefe30ff70fd009ca7e2.zip | |
Merge pull request #437 from rust-lang/dummy-emit-ir
Implement dummy emit=llvm-ir
Diffstat (limited to 'src')
| -rw-r--r-- | src/back/write.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/back/write.rs b/src/back/write.rs index 04772d7707a..792fd47001d 100644 --- a/src/back/write.rs +++ b/src/back/write.rs @@ -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 { |
