Skip to content

Commit efb3524

Browse files
committed
---
yaml --- r: 60794 b: refs/heads/auto c: 4988c89 h: refs/heads/master v: v3
1 parent e1bde2c commit efb3524

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: a5b87d71e09889da28510f960a6fd47fca3dcbf9
17+
refs/heads/auto: 4988c89e86d7120d5c9b0d5ccabba4e8763e1fe7
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/librustc/back/passes.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010

1111
use core::prelude::*;
1212

13-
use driver::session::{Session, Session_, No, Less, Default};
1413
use driver::session;
15-
use lib::llvm::{PassRef, ModuleRef,PassManagerRef,ValueRef,TargetDataRef};
14+
use lib::llvm::{PassRef, ModuleRef,PassManagerRef,TargetDataRef};
1615
use lib::llvm::llvm;
1716
use lib;
1817

@@ -56,12 +55,12 @@ impl PassManager {
5655

5756
pub fn populatePassManager(pm: &mut PassManager, level:session::OptLevel) {
5857
unsafe {
59-
// We add a lot of potentially-unused prototypes, so strip them right at the
60-
// start. We do it again later when we know for certain which ones are used
61-
pm.addPass(llvm::LLVMCreateStripDeadPrototypesPass());
62-
6358
if level == session::No {
6459
pm.addPass(llvm::LLVMCreateAlwaysInlinerPass());
60+
61+
// We add a lot of unused prototypes, so strip them no matter
62+
// what
63+
pm.addPass(llvm::LLVMCreateStripDeadPrototypesPass());
6564
return;
6665
}
6766

0 commit comments

Comments
 (0)