Files
rust/compiler/rustc_codegen_llvm
Jonathan Brouwer 407fe75bfe Rollup merge of #163951 - RalfJung:relax_elf_relocations, r=wesleywiser
relax_elf_relocations is x86-only

The flag ends up here

8d1a764304/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp (L393)

The LLVM name for this, `X86RelaxRelocations`, makes me believe that this is x86-only. So let's at least document that on our side as well.

Cc @bjorn3  @nikic
2026-10-08 08:55:42 +02:00
..
…

The codegen crate contains the code to convert from MIR into LLVM IR, and then from LLVM IR into machine code. In general it contains code that runs towards the end of the compilation process.

For more information about how codegen works, see the rustc dev guide.