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:
Alex Crichton 2015-05-11 12:24:12 -07:00
parent 2d5e5777fd
commit 40570eb49e
2 changed files with 21 additions and 3 deletions

View file

@ -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