From 0c616b481c3f9d033acc2ca7ab9a656ee069bd56 Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Mon, 20 Oct 2025 19:31:44 +0200 Subject: [PATCH] debugging.md: Remove wrong claim that LLVM bitcode is not the same as IR They are the same thing since they can be converted back and forth without loss. --- src/backend/debugging.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/debugging.md b/src/backend/debugging.md index 4f8712dfa..a569813db 100644 --- a/src/backend/debugging.md +++ b/src/backend/debugging.md @@ -77,7 +77,7 @@ llvm-ir`). `--build-type=debug` emits code for debug builds. There are also other useful options. Also, debug info in LLVM IR can clutter the output a lot: `RUSTFLAGS="-C debuginfo=0"` is really useful. -`RUSTFLAGS="-C save-temps"` outputs LLVM bitcode (not the same as IR) at +`RUSTFLAGS="-C save-temps"` outputs LLVM bitcode at different stages during compilation, which is sometimes useful. The output LLVM bitcode will be in `.bc` files in the compiler's output directory, set via the `--out-dir DIR` argument to `rustc`.