]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #22530 - rprichard:master, r=dotdash
authorbors <bors@rust-lang.org>
Tue, 24 Feb 2015 20:57:31 +0000 (20:57 +0000)
committerbors <bors@rust-lang.org>
Tue, 24 Feb 2015 20:57:31 +0000 (20:57 +0000)
Fixes #22525

I wasn't sure if I should reuse `write::get_llvm_opt_level` or not.  It returns an `llvm::CodeGenOptLevel`, which is the Rust binding for `CodeGenOpt::Level`. `lto.rs` is passing an optlevel to LLVM's `PassManagerBuilder`, which takes an unsigned int.  `PassManagerBuilder`'s optlevel uses essentially the same enumeration (i.e. 0-3 with 2 as default), but it's implicit.

1  2 
src/librustc_trans/back/lto.rs

Simple merge