]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_codegen_llvm/traits.rs
Generalized SynchronisationScope for BuilderMethods
[rust.git] / src / librustc_codegen_llvm / traits.rs
index 315c273dd2dc9ecb234e2a3dcbd720d800597f9a..d28dd0fa795a5f6a11e4fcedb0dc10ebb464f42e 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use llvm::{SynchronizationScope, AsmDialect};
+use llvm::AsmDialect;
 use common::*;
 use type_::Type;
 use libc::c_char;
@@ -94,6 +94,14 @@ pub enum AtomicOrdering {
     SequentiallyConsistent,
 }
 
+pub enum SynchronizationScope {
+    // FIXME: figure out if this variant is needed at all.
+    #[allow(dead_code)]
+    Other,
+    SingleThread,
+    CrossThread,
+}
+
 
 pub trait BuilderMethods<'a, 'll :'a, 'tcx: 'll,
     Value : ?Sized,