[compiler-rt] r259068 - Minor cleanup /NFC

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 28 10:37:43 PST 2016


Author: davidxl
Date: Thu Jan 28 12:37:43 2016
New Revision: 259068

URL: http://llvm.org/viewvc/llvm-project?rev=259068&view=rev
Log:
Minor cleanup /NFC

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

Modified: compiler-rt/trunk/lib/profile/InstrProfilingFile.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingFile.c?rev=259068&r1=259067&r2=259068&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingFile.c (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingFile.c Thu Jan 28 12:37:43 2016
@@ -17,10 +17,6 @@
 
 #define UNCONST(ptr) ((void *)(uintptr_t)(ptr))
 
-#ifdef _MSC_VER
-#define snprintf _snprintf
-#endif
-
 /* Return 1 if there is an error, otherwise return  0.  */
 static uint32_t fileWriter(ProfDataIOVec *IOVecs, uint32_t NumIOVecs,
                            void **WriterCtx) {

Modified: compiler-rt/trunk/lib/profile/InstrProfilingPort.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingPort.h?rev=259068&r1=259067&r2=259068&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingPort.h (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingPort.h Thu Jan 28 12:37:43 2016
@@ -25,6 +25,7 @@
 #if COMPILER_RT_HAS_ATOMICS == 1
 #ifdef _MSC_VER
 #include <windows.h>
+#define snprintf _snprintf
 #if defined(_WIN64)
 #define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV)                              \
   (InterlockedCompareExchange64((LONGLONG volatile *)Ptr, (LONGLONG)NewV,      \




More information about the llvm-commits mailing list