Use the existing set_visibility
function.
This commit is contained in:
parent
3c3bf76ce0
commit
bc5443a603
2 changed files with 1 additions and 7 deletions
|
@ -42,7 +42,7 @@ fn declare_raw_fn<'ll>(
|
|||
|
||||
llvm::SetFunctionCallConv(llfn, callconv);
|
||||
llvm::SetUnnamedAddress(llfn, unnamed);
|
||||
llvm::SetVisibility(llfn, visibility);
|
||||
llvm::set_visibility(llfn, visibility);
|
||||
|
||||
let mut attrs = SmallVec::<[_; 4]>::new();
|
||||
|
||||
|
|
|
@ -172,12 +172,6 @@ pub fn SetUnnamedAddress(global: &Value, unnamed: UnnamedAddr) {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn SetVisibility(global: &Value, visibility: Visibility) {
|
||||
unsafe {
|
||||
LLVMRustSetVisibility(global, visibility);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn set_thread_local_mode(global: &Value, mode: ThreadLocalMode) {
|
||||
unsafe {
|
||||
LLVMSetThreadLocalMode(global, mode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue