Make CGU-local globals private so they don't show up in the local symbol table.
This commit is contained in:
parent
c16f480fa6
commit
0bfc2b92c3
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ pub fn addr_of_mut(ccx: &CrateContext,
|
|||
});
|
||||
llvm::LLVMSetInitializer(gv, cv);
|
||||
set_global_alignment(ccx, gv, align);
|
||||
llvm::LLVMRustSetLinkage(gv, llvm::Linkage::InternalLinkage);
|
||||
llvm::LLVMRustSetLinkage(gv, llvm::Linkage::PrivateLinkage);
|
||||
SetUnnamedAddr(gv, true);
|
||||
gv
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue