diff options
author | Kostya Serebryany <kcc@google.com> | 2013-03-29 09:44:16 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2013-03-29 09:44:16 +0000 |
commit | d475aa8578f4a1955cdb3e3159eda8b229f8c021 (patch) | |
tree | 99f8857eefb4020f404058843a20d75cf5112e43 /lib/sanitizer_common/sanitizer_internal_defs.h | |
parent | 76030b30c53e7003b17c85f2bbbca976da63bbe1 (diff) | |
download | compiler-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.h | 2 |
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))) |