diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-10-11 17:35:42 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-10-11 17:35:42 +0000 |
commit | 4a5943aa040c06c4c36fc6a8902e72fc97520a2c (patch) | |
tree | d04f9744d3a8ca0d313728d31897e407f8b230a6 /lib/builtins/int_lib.h | |
parent | d13e190deab4e4ae5cb18421f14d904e980aee9e (diff) |
builtins: define and use ALWAYS_INLINE
Abstract out the always inline spelling similar to ASAN. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@249986 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/builtins/int_lib.h')
-rw-r--r-- | lib/builtins/int_lib.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/builtins/int_lib.h b/lib/builtins/int_lib.h index e6fcf2f4e..c2a5090ed 100644 --- a/lib/builtins/int_lib.h +++ b/lib/builtins/int_lib.h @@ -43,10 +43,12 @@ #endif #ifdef _MSC_VER +#define ALWAYS_INLINE __forceinline #define NOINLINE __declspec(noinline) #define NORETURN __declspec(noreturn) #define UNUSED #else +#define ALWAYS_INLINE __attribute__((always_inline)) #define NOINLINE __attribute__((noinline)) #define NORETURN __attribute__((noreturn)) #define UNUSED __attribute__((unused)) |