Skip to content

Commit b44aa63

Browse files
committed
---
yaml --- r: 2883 b: refs/heads/master c: 30efdee h: refs/heads/master i: 2881: 219f231 2879: 4c1d3ee v: v3
1 parent 9c12a4d commit b44aa63

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 2ef2bda276d2fe28d8b15f722850f5f21b226792
2+
refs/heads/master: 30efdeeca1bd0d60412fdb9e88eba6336ffcacea

trunk/src/comp/middle/trans.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7436,9 +7436,12 @@ fn register_fn_pair(&@crate_ctxt cx, str ps, TypeRef llpairty, ValueRef llfn,
74367436

74377437
llvm::LLVMSetInitializer(gvar, pair);
74387438
llvm::LLVMSetGlobalConstant(gvar, True);
7439-
llvm::LLVMSetVisibility(gvar,
7440-
lib::llvm::LLVMProtectedVisibility
7441-
as llvm::Visibility);
7439+
7440+
// FIXME: We should also hide the unexported pairs in crates.
7441+
if (!cx.sess.get_opts().shared) {
7442+
llvm::LLVMSetLinkage(gvar, lib::llvm::LLVMInternalLinkage
7443+
as llvm::Linkage);
7444+
}
74427445

74437446
cx.item_ids.insert(id, llfn);
74447447
cx.item_symbols.insert(id, ps);

0 commit comments

Comments
 (0)