rust/src/librustc_codegen_llvm
Stephen Crane 32168a3df7 Allow different global references to the same name
Combining CGUs can result in code that references a static variable through both
an Item and a ForeignItem with the same name. We don't care that the global was
already created by a ForeignItem reference when we see the Item reference, as
long as the LLVM types of the ForeignItem and Item match.

Fixes #66464
2019-11-18 16:27:59 -08:00
..
2019-10-21 18:30:40 +11:00
2019-10-13 14:43:57 +02:00
2019-11-03 10:52:00 -06:00
2019-10-25 16:10:17 -07: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 guide.