rustc_llvm: Expose setting more DLL storage classes
Currently only `dllexport` is used, but more integration will require using `dllimport` as well.
This commit is contained in:
parent
2d5e5777fd
commit
40570eb49e
2 changed files with 21 additions and 3 deletions
|
@ -837,9 +837,10 @@ LLVMRustArchiveChildData(Archive::Child *child, size_t *size) {
|
|||
}
|
||||
|
||||
extern "C" void
|
||||
LLVMRustSetDLLExportStorageClass(LLVMValueRef Value) {
|
||||
LLVMRustSetDLLStorageClass(LLVMValueRef Value,
|
||||
GlobalValue::DLLStorageClassTypes Class) {
|
||||
GlobalValue *V = unwrap<GlobalValue>(Value);
|
||||
V->setDLLStorageClass(GlobalValue::DLLExportStorageClass);
|
||||
V->setDLLStorageClass(Class);
|
||||
}
|
||||
|
||||
// Note that the two following functions look quite similar to the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue