Skip to content

Commit 0bfc2b9

Browse files
Make CGU-local globals private so they don't show up in the local symbol table.
1 parent c16f480 commit 0bfc2b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_trans/consts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub fn addr_of_mut(ccx: &CrateContext,
7474
});
7575
llvm::LLVMSetInitializer(gv, cv);
7676
set_global_alignment(ccx, gv, align);
77-
llvm::LLVMRustSetLinkage(gv, llvm::Linkage::InternalLinkage);
77+
llvm::LLVMRustSetLinkage(gv, llvm::Linkage::PrivateLinkage);
7878
SetUnnamedAddr(gv, true);
7979
gv
8080
}

0 commit comments

Comments
 (0)