[llvm-commits] [compiler-rt] r158067 - /compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
Alexey Samsonov
samsonov at google.com
Wed Jun 6 06:37:02 PDT 2012
Author: samsonov
Date: Wed Jun 6 08:37:02 2012
New Revision: 158067
URL: http://llvm.org/viewvc/llvm-project?rev=158067&view=rev
Log:
[Sanitizer] fix Win build - ignore __attribute__((format)).
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h?rev=158067&r1=158066&r2=158067&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h Wed Jun 6 08:37:02 2012
@@ -29,12 +29,14 @@
// FIXME(timurrrr): do we need this on Windows?
# define ALIAS(x)
# define ALIGNED(x) __declspec(align(x))
+# define FORMAT(f, a)
# define NOINLINE __declspec(noinline)
# define NORETURN __declspec(noreturn)
# define THREADLOCAL __declspec(thread)
#else // _WIN32
# define ALIAS(x) __attribute__((alias(x)))
# define ALIGNED(x) __attribute__((aligned(x)))
+# define FORMAT(f, a) __attribute__((format(printf, f, a)))
# define NOINLINE __attribute__((noinline))
# define NORETURN __attribute__((noreturn))
# define THREADLOCAL __thread
@@ -45,7 +47,6 @@
# define ALWAYS_INLINE __attribute__((always_inline))
# define LIKELY(x) __builtin_expect(!!(x), 1)
# define UNLIKELY(x) __builtin_expect(!!(x), 0)
-# define FORMAT(f, a) __attribute__((format(printf, f, a)))
# define USED __attribute__((used))
#endif
More information about the llvm-commits
mailing list