diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-05-24 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-05-25 10:34:35 +0200 |
| commit | 8f0f6e365cbcbdc5576f4ce3cfe5dae1c75daae0 (patch) | |
| tree | 1e8cd49495e4a34c098d9f1a3b66f8e462ca1e3e | |
| parent | 084d2d7c4989befd62f15240bef3ec542cf58a41 (diff) | |
| download | rust-8f0f6e365cbcbdc5576f4ce3cfe5dae1c75daae0.tar.gz rust-8f0f6e365cbcbdc5576f4ce3cfe5dae1c75daae0.zip | |
rustc_codegen_ssa: cleanup `AtomicOrdering`
* Remove unused `NotAtomic` ordering. * Rename `Monotonic` to `Relaxed` - a Rust specific name.
| -rw-r--r-- | src/builder.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/builder.rs b/src/builder.rs index 41f88f119e2..62eeb373821 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -68,9 +68,8 @@ trait EnumClone { impl EnumClone for AtomicOrdering { fn clone(&self) -> Self { match *self { - AtomicOrdering::NotAtomic => AtomicOrdering::NotAtomic, AtomicOrdering::Unordered => AtomicOrdering::Unordered, - AtomicOrdering::Monotonic => AtomicOrdering::Monotonic, + AtomicOrdering::Relaxed => AtomicOrdering::Relaxed, AtomicOrdering::Acquire => AtomicOrdering::Acquire, AtomicOrdering::Release => AtomicOrdering::Release, AtomicOrdering::AcquireRelease => AtomicOrdering::AcquireRelease, @@ -1384,9 +1383,8 @@ impl ToGccOrdering for AtomicOrdering { let ordering = match self { - AtomicOrdering::NotAtomic => __ATOMIC_RELAXED, // TODO(antoyo): check if that's the same. AtomicOrdering::Unordered => __ATOMIC_RELAXED, - AtomicOrdering::Monotonic => __ATOMIC_RELAXED, // TODO(antoyo): check if that's the same. + AtomicOrdering::Relaxed => __ATOMIC_RELAXED, // TODO(antoyo): check if that's the same. AtomicOrdering::Acquire => __ATOMIC_ACQUIRE, AtomicOrdering::Release => __ATOMIC_RELEASE, AtomicOrdering::AcquireRelease => __ATOMIC_ACQ_REL, |
