diff options
author | Xinliang David Li <davidxl@google.com> | 2015-12-10 19:20:25 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2015-12-10 19:20:25 +0000 |
commit | 0a2e74191a075b6c2dbf6a8f8fced20476710630 (patch) | |
tree | dac089beb5c0da18ca54736fd99e31043affcb11 /lib/profile/InstrProfiling.c | |
parent | 122d4f250c1e5bc966e7666f7217e6470ed9e86b (diff) |
[PGO] Move target-dependent macro to InstrProfilingPort.h (NFC)
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@255285 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfiling.c')
-rw-r--r-- | lib/profile/InstrProfiling.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/profile/InstrProfiling.c b/lib/profile/InstrProfiling.c index a6d4d8945..44f8ce5a7 100644 --- a/lib/profile/InstrProfiling.c +++ b/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; |