]> git.lizzy.rs Git - rust.git/commit
trans: Make names of internal symbols independent of CGU translation order.
authorMichael Woerister <michaelwoerister@posteo.net>
Fri, 21 Oct 2016 16:41:20 +0000 (12:41 -0400)
committerMichael Woerister <michaelwoerister@posteo.net>
Fri, 21 Oct 2016 18:58:53 +0000 (14:58 -0400)
commite6aa92c4325e3da9a698010bb88e3cdb240ce142
treec966a2fc61294ba08618807e0e7f4e1912f4a50e
parentda5b6467c33f7f86b4964b08b37726f7611a8f0c
trans: Make names of internal symbols independent of CGU translation order.

Every codegen unit gets its own local counter for generating new symbol
names. This makes bitcode and object files reproducible at the binary
level even when incremental compilation is used.
src/librustc_trans/common.rs
src/librustc_trans/consts.rs
src/librustc_trans/context.rs