]> git.lizzy.rs Git - rust.git/commit
Introduce the `init_llvm` function
authorAndrea Canciani <ranma42@gmail.com>
Wed, 2 Mar 2016 20:02:12 +0000 (21:02 +0100)
committerAndrea Canciani <ranma42@gmail.com>
Fri, 8 Apr 2016 22:41:23 +0000 (00:41 +0200)
commit358e41cee4c31a739b6a45723e8917b19e7f7db9
treede2221232cdd965e81e1bbea3a327234bfc75a28
parent92e24b95167897881377d43ce3ee6aa7ba2685a4
Introduce the `init_llvm` function

Extract the code that performs the initialization of the LLVM backend
and invoke it before computing the available features. The
initialization is required to happen before the features are added to
the configuration, because they are computed by LLVM, therefore is is
now performed when creating the `Session` object.
src/librustc/session/mod.rs
src/librustc_trans/back/write.rs
src/librustc_trans/base.rs