Create safe helper for LLVMSetDLLStorageClass
This commit is contained in:
parent
eeb9035117
commit
ea7180813b
3 changed files with 10 additions and 10 deletions
|
@ -403,3 +403,9 @@ pub(crate) fn add_module_flag_str(
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn set_dllimport_storage_class<'ll>(v: &'ll Value) {
|
||||
unsafe {
|
||||
LLVMSetDLLStorageClass(v, DLLStorageClass::DllImport);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue