about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorantoyo <antoyo@users.noreply.github.com>2024-02-14 12:27:14 -0500
committerGitHub <noreply@github.com>2024-02-14 12:27:14 -0500
commit77b980451d5f5a4af94baefe30ff70fd009ca7e2 (patch)
treece51221b9a0d7483d458bff84a42b7971f4b2689 /src
parent826a20be1da6869e8d7ae9759bb640252e38a799 (diff)
parentde57533e5644335eccd8c1430b4c60295a0b922c (diff)
downloadrust-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.rs3
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 {