]> git.proxmox.com Git - rustc.git/blobdiff - src/librustc_llvm/lib.rs
New upstream version 1.23.0+dfsg1
[rustc.git] / src / librustc_llvm / lib.rs
index 98172bca1778625da8ce88b02513b4788055a9b8..5ccce8de7063995ccb2e9378a83f7a96bae4234c 100644 (file)
@@ -172,6 +172,11 @@ pub fn set_thread_local(global: ValueRef, is_thread_local: bool) {
         LLVMSetThreadLocal(global, is_thread_local as Bool);
     }
 }
+pub fn set_thread_local_mode(global: ValueRef, mode: ThreadLocalMode) {
+    unsafe {
+        LLVMSetThreadLocalMode(global, mode);
+    }
+}
 
 impl Attribute {
     pub fn apply_llfn(&self, idx: AttributePlace, llfn: ValueRef) {