Skip to content

Commit

Permalink
Removed unused parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimcn committed Sep 26, 2015
1 parent c21fcac commit 38f1c47
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/librustc_trans/trans/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2616,9 +2616,8 @@ fn internalize_symbols(cx: &SharedCrateContext, reachable: &HashSet<&str>) {
// when using MSVC linker. We do this only for data, as linker can fix up
// code references on its own.
// See #26591, #27438
fn create_imps(cx: &SharedCrateContext, _reachable: &HashSet<&str>) {
fn create_imps(cx: &SharedCrateContext) {
unsafe {

for ccx in cx.iter() {
let exported: Vec<_> = iter_globals(ccx.llmod())
.filter(|&val| llvm::LLVMGetLinkage(val) == llvm::ExternalLinkage as c_uint &&
Expand Down Expand Up @@ -2857,9 +2856,8 @@ pub fn trans_crate(tcx: &ty::ctxt, analysis: ty::CrateAnalysis) -> CrateTranslat
}

if sess.target.target.options.is_like_msvc &&
sess.crate_types.borrow().iter().any(|ct| *ct == config::CrateTypeRlib ||
*ct == config::CrateTypeStaticlib) {
create_imps(&shared_ccx, &reachable_symbols.iter().map(|x| &x[..]).collect());
sess.crate_types.borrow().iter().any(|ct| *ct == config::CrateTypeRlib) {
create_imps(&shared_ccx);
}

let metadata_module = ModuleTranslation {
Expand Down

0 comments on commit 38f1c47

Please sign in to comment.