summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-06-06 13:37:02 +0000
committerAlexey Samsonov <samsonov@google.com>2012-06-06 13:37:02 +0000
commit8bafdd020e6e039744d7f12fdd103e813a99fdb4 (patch)
treeeae002aa48956a5e5ae87b70d7be2860affc6869
parent51ae983718f9d7e4cb4d967244d64aeae7fb2501 (diff)
downloadbcm5719-llvm-8bafdd020e6e039744d7f12fdd103e813a99fdb4.tar.gz
bcm5719-llvm-8bafdd020e6e039744d7f12fdd103e813a99fdb4.zip
[Sanitizer] fix Win build - ignore __attribute__((format)).
llvm-svn: 158067
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h b/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
index f29045f381a..654947b6b3f 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
@@ -29,12 +29,14 @@ typedef unsigned long DWORD; // NOLINT
// 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 @@ typedef unsigned long DWORD; // NOLINT
# 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
OpenPOWER on IntegriCloud