Skip to content

Commit bc5443a

Browse files
committed
Use the existing set_visibility function.
1 parent 3c3bf76 commit bc5443a

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

compiler/rustc_codegen_llvm/src/declare.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fn declare_raw_fn<'ll>(
4242

4343
llvm::SetFunctionCallConv(llfn, callconv);
4444
llvm::SetUnnamedAddress(llfn, unnamed);
45-
llvm::SetVisibility(llfn, visibility);
45+
llvm::set_visibility(llfn, visibility);
4646

4747
let mut attrs = SmallVec::<[_; 4]>::new();
4848

compiler/rustc_codegen_llvm/src/llvm/mod.rs

-6
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,6 @@ pub fn SetUnnamedAddress(global: &Value, unnamed: UnnamedAddr) {
172172
}
173173
}
174174

175-
pub fn SetVisibility(global: &Value, visibility: Visibility) {
176-
unsafe {
177-
LLVMRustSetVisibility(global, visibility);
178-
}
179-
}
180-
181175
pub fn set_thread_local_mode(global: &Value, mode: ThreadLocalMode) {
182176
unsafe {
183177
LLVMSetThreadLocalMode(global, mode);

0 commit comments

Comments
 (0)