]> git.lizzy.rs Git - rust.git/commit
[LLVM-3.9] Setup the compile unit information immediately
authorJan-Erik Rediger <janerik@fnordig.de>
Tue, 12 Jul 2016 22:40:38 +0000 (00:40 +0200)
committerJan-Erik Rediger <janerik@fnordig.de>
Fri, 29 Jul 2016 08:29:44 +0000 (10:29 +0200)
commitfba1f8f1239e45aa44bacfa0f955a24e3ade6982
tree4576d03435b4d2894826e013f293aee1efbdcc87
parent7420874a97a268d1c75dbc0e95231e4c8a1d513a
[LLVM-3.9] Setup the compile unit information immediately

Since LLVM reversed the order of the debug info graphs, we need to have
a compile unit that exists *before* any functions (`DISubprogram`s) are
created. This allows the LLVM debug info builder to automatically link
the functions to the compile unit.
src/librustc_trans/context.rs
src/librustc_trans/debuginfo/metadata.rs
src/librustc_trans/debuginfo/mod.rs