Skip to content

Commit

Permalink
auto merge of #10205 : brson/rust/unnamed_addr, r=thestinger
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Nov 1, 2013
2 parents fa8a202 + 2992720 commit 04c58c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc/middle/trans/base.rs
Expand Up @@ -182,6 +182,8 @@ pub fn decl_fn(llmod: ModuleRef, name: &str, cc: lib::llvm::CallConv, ty: Type)
};

lib::llvm::SetFunctionCallConv(llfn, cc);
// Function addresses in Rust are never significant, allowing functions to be merged.
lib::llvm::SetUnnamedAddr(llfn, true);
return llfn;
}

Expand Down

0 comments on commit 04c58c9

Please sign in to comment.