Remove SynchronizationScope::Other

Added in b761538997, it started out already
unused.
This commit is contained in:
Mark Rousskov 2020-08-11 16:16:26 -04:00
parent 1275cc15d6
commit a3c73ca88c
3 changed files with 0 additions and 8 deletions

View File

@ -337,9 +337,6 @@ pub fn from_generic(ao: rustc_codegen_ssa::common::AtomicOrdering) -> Self {
#[derive(Copy, Clone)]
#[repr(C)]
pub enum SynchronizationScope {
// FIXME: figure out if this variant is needed at all.
#[allow(dead_code)]
Other,
SingleThread,
CrossThread,
}
@ -347,7 +344,6 @@ pub enum SynchronizationScope {
impl SynchronizationScope {
pub fn from_generic(sc: rustc_codegen_ssa::common::SynchronizationScope) -> Self {
match sc {
rustc_codegen_ssa::common::SynchronizationScope::Other => SynchronizationScope::Other,
rustc_codegen_ssa::common::SynchronizationScope::SingleThread => {
SynchronizationScope::SingleThread
}

View File

@ -72,9 +72,6 @@ pub enum AtomicOrdering {
}
pub enum SynchronizationScope {
// FIXME: figure out if this variant is needed at all.
#[allow(dead_code)]
Other,
SingleThread,
CrossThread,
}

View File

@ -366,7 +366,6 @@ LLVMRustBuildAtomicCmpXchg(LLVMBuilderRef B, LLVMValueRef Target,
}
enum class LLVMRustSynchronizationScope {
Other,
SingleThread,
CrossThread,
};