]> git.lizzy.rs Git - rust.git/commit
debuginfo: Generate cross-crate unique type identifiers for debuginfo types.
authorMichael Woerister <michaelwoerister@posteo>
Fri, 30 May 2014 15:09:16 +0000 (17:09 +0200)
committerMichael Woerister <michaelwoerister@posteo>
Thu, 12 Jun 2014 16:39:01 +0000 (18:39 +0200)
commit0a98a4e422bd2d80ee7910b00c0286f1eefde9c5
treeedffef9227740c6dd55390d39315acb2c6e18d23
parentc0a6f72e8bfea2647da7f63f9f09b2cfeaa161c9
debuginfo: Generate cross-crate unique type identifiers for debuginfo types.

With this change, rustc creates a unique type identifier for types in debuginfo. These type identifiers are used by LLVM to correctly handle link-time-optimization scenarios but also help rustc with dealing with inlining from other crates. For more information, see the documentation block at the top of librustc/middle/trans/debuginfo.rs.

Fixes #13681.
src/librustc/middle/trans/debuginfo.rs
src/test/auxiliary/cross_crate_debuginfo_type_uniquing.rs [new file with mode: 0644]
src/test/debuginfo/cross-crate-type-uniquing.rs [new file with mode: 0644]