diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-05-11 12:24:12 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-05-12 14:50:36 -0700 |
| commit | 40570eb49eb1cb688637cb58d14cdb9664ea1039 (patch) | |
| tree | e6755cd317253b12111fc986af70ed6cbebb0a15 /src/rustllvm/RustWrapper.cpp | |
| parent | 2d5e5777fd94fcad0bf259e31982477e42bd5bf8 (diff) | |
| download | rust-40570eb49eb1cb688637cb58d14cdb9664ea1039.tar.gz rust-40570eb49eb1cb688637cb58d14cdb9664ea1039.zip | |
rustc_llvm: Expose setting more DLL storage classes
Currently only `dllexport` is used, but more integration will require using `dllimport` as well.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
| -rw-r--r-- | src/rustllvm/RustWrapper.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp index 375c5fc746c..5a2d1ec4207 100644 --- a/src/rustllvm/RustWrapper.cpp +++ b/src/rustllvm/RustWrapper.cpp @@ -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 |
