diff options
author | Owen Anderson <resistor@mac.com> | 2009-06-17 00:28:49 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-06-17 00:28:49 +0000 |
commit | efdbfc4ceff91a44a835244db9516eb4d1953f8a (patch) | |
tree | 07708632a462a169d9d5ad23e82a01ae865687c3 /include/llvm/System | |
parent | 9a3df671ab49db61ef6234cf90b7ea7dc2a53917 (diff) | |
download | external_llvm-efdbfc4ceff91a44a835244db9516eb4d1953f8a.zip external_llvm-efdbfc4ceff91a44a835244db9516eb4d1953f8a.tar.gz external_llvm-efdbfc4ceff91a44a835244db9516eb4d1953f8a.tar.bz2 |
Use atomic increment/decrement for reference counting of Type's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73588 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r-- | include/llvm/System/Atomic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/System/Atomic.h b/include/llvm/System/Atomic.h index f90a8f6..adbb975 100644 --- a/include/llvm/System/Atomic.h +++ b/include/llvm/System/Atomic.h @@ -24,8 +24,8 @@ namespace llvm { cas_flag CompareAndSwap(volatile cas_flag* ptr, cas_flag new_value, cas_flag old_value); - cas_flag AtomicPostIncrement(volatile cas_flag* ptr); - cas_flag AtomicPostDecrement(volatile cas_flag* ptr); + cas_flag AtomicIncrement(volatile cas_flag* ptr); + cas_flag AtomicDecrement(volatile cas_flag* ptr); } } |