summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_internal_defs.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2013-03-29 09:44:16 +0000
committerKostya Serebryany <kcc@google.com>2013-03-29 09:44:16 +0000
commitd475aa8578f4a1955cdb3e3159eda8b229f8c021 (patch)
tree99f8857eefb4020f404058843a20d75cf5112e43 /lib/sanitizer_common/sanitizer_internal_defs.h
parent76030b30c53e7003b17c85f2bbbca976da63bbe1 (diff)
downloadcompiler-rt-d475aa8578f4a1955cdb3e3159eda8b229f8c021.tar.gz
[tsan] restore performance critical inlining in tsan: remove static from ALWAYS_INLINE, use ALWAYS_INLINE USED for critical functions.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178341 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_internal_defs.h')
-rw-r--r--lib/sanitizer_common/sanitizer_internal_defs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_internal_defs.h b/lib/sanitizer_common/sanitizer_internal_defs.h
index e5a7fb7ab..8c0e601fc 100644
--- a/lib/sanitizer_common/sanitizer_internal_defs.h
+++ b/lib/sanitizer_common/sanitizer_internal_defs.h
@@ -130,7 +130,7 @@ using namespace __sanitizer; // NOLINT
# define USED
# define PREFETCH(x) /* _mm_prefetch(x, _MM_HINT_NTA) */
#else // _MSC_VER
-# define ALWAYS_INLINE static inline __attribute__((always_inline))
+# define ALWAYS_INLINE inline __attribute__((always_inline))
# define ALIAS(x) __attribute__((alias(x)))
# define ALIGNED(x) __attribute__((aligned(x)))
# define FORMAT(f, a) __attribute__((format(printf, f, a)))