Skip to content

Commit 6229f25

Browse files
committed
---
yaml --- r: 187324 b: refs/heads/try c: e033a23 h: refs/heads/master v: v3
1 parent 257e748 commit 6229f25

File tree

4 files changed

+182
-133
lines changed

4 files changed

+182
-133
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: b4c965ee803a4521d8b4575f634e036f93e408f3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 3a96d6a9818fe2affc98a187fb1065120458cee9
5-
refs/heads/try: ad04cce61c366968098e2adc8594e21e91c578e0
5+
refs/heads/try: e033a231abf1b8933a51e4c93dc8aeb39b30020d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/librustc_trans/back/lto.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,7 @@ pub fn run(sess: &session::Session, llmod: ModuleRef,
167167
llvm::LLVMRustAddAnalysisPasses(tm, pm, llmod);
168168
llvm::LLVMRustAddPass(pm, "verify\0".as_ptr() as *const _);
169169

170-
let opt = match sess.opts.optimize {
171-
config::No => 0,
172-
config::Less => 1,
173-
config::Default => 2,
174-
config::Aggressive => 3,
175-
};
170+
let opt = sess.opts.cg.opt_level.unwrap_or(0) as libc::c_uint;
176171

177172
let builder = llvm::LLVMPassManagerBuilderCreate();
178173
llvm::LLVMPassManagerBuilderSetOptLevel(builder, opt);

0 commit comments

Comments
 (0)