summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/profile/InstrProfiling.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/profile/InstrProfiling.c')
-rw-r--r--compiler-rt/lib/profile/InstrProfiling.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler-rt/lib/profile/InstrProfiling.c b/compiler-rt/lib/profile/InstrProfiling.c
index a6d4d8945be..44f8ce5a70d 100644
--- a/compiler-rt/lib/profile/InstrProfiling.c
+++ b/compiler-rt/lib/profile/InstrProfiling.c
@@ -23,10 +23,7 @@
return 0; \
}
-#if COMPILER_RT_HAS_ATOMICS == 1
-#define BOOL_CMPXCHG(Ptr, OldV, NewV) \
- __sync_bool_compare_and_swap(Ptr, OldV, NewV)
-#else
+#if COMPILER_RT_HAS_ATOMICS != 1
LLVM_LIBRARY_VISIBILITY
uint32_t BoolCmpXchg(void **Ptr, void *OldV, void *NewV) {
void *R = *Ptr;
@@ -36,7 +33,6 @@ uint32_t BoolCmpXchg(void **Ptr, void *OldV, void *NewV) {
}
return 0;
}
-#define BOOL_CMPXCHG(Ptr, OldV, NewV) BoolCmpXchg((void **)Ptr, OldV, NewV)
#endif
char *(*GetEnvHook)(const char *) = 0;
OpenPOWER on IntegriCloud