[compiler-rt] r262827 - [Fix r262785] Fix missing declaration when COMPILER_RT_BOOL_CMPXCHG was used but InstrProfilingUtil.h wasn't included.

Filipe Cabecinhas via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 7 05:42:18 PST 2016


Author: filcab
Date: Mon Mar  7 07:42:17 2016
New Revision: 262827

URL: http://llvm.org/viewvc/llvm-project?rev=262827&view=rev
Log:
[Fix r262785] Fix missing declaration when COMPILER_RT_BOOL_CMPXCHG was used but InstrProfilingUtil.h wasn't included.

Also fixed declaration which still had the pre-r262788 name.

Modified:
    compiler-rt/trunk/lib/profile/InstrProfilingPort.h
    compiler-rt/trunk/lib/profile/InstrProfilingUtil.h

Modified: compiler-rt/trunk/lib/profile/InstrProfilingPort.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingPort.h?rev=262827&r1=262826&r2=262827&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingPort.h (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingPort.h Mon Mar  7 07:42:17 2016
@@ -52,6 +52,7 @@
   __sync_bool_compare_and_swap(Ptr, OldV, NewV)
 #endif
 #else /* COMPILER_RT_HAS_ATOMICS != 1 */
+#include "InstrProfilingUtil.h"
 #define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV)                              \
   lprofBoolCmpXchg((void **)Ptr, OldV, NewV)
 #endif

Modified: compiler-rt/trunk/lib/profile/InstrProfilingUtil.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingUtil.h?rev=262827&r1=262826&r2=262827&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingUtil.h (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingUtil.h Mon Mar  7 07:42:17 2016
@@ -22,6 +22,6 @@ static inline char *getenv(const char *n
 
 int lprofGetHostName(char *Name, int Len);
 
-unsigned BoolCmpXchg(void **Ptr, void *OldV, void *NewV);
+unsigned lprofBoolCmpXchg(void **Ptr, void *OldV, void *NewV);
 
 #endif  /* PROFILE_INSTRPROFILINGUTIL_H */




More information about the llvm-commits mailing list