mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-04 10:00:50 +00:00
add an ALWAYS_INLINE macro, which does the obvious thing.
llvm-svn: 91416
This commit is contained in:
parent
c0ab5a6e88
commit
05651d4544
@ -70,6 +70,16 @@
|
||||
#define DISABLE_INLINE
|
||||
#endif
|
||||
|
||||
// ALWAYS_INLINE - On compilers where we have a directive to do so, mark a
|
||||
// method "always inline" because it is performance sensitive.
|
||||
#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
|
||||
#define ALWAYS_INLINE __attribute__((always_inline))
|
||||
#else
|
||||
// TODO: No idea how to do this with MSVC.
|
||||
#define ALWAYS_INLINE
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define NORETURN __attribute__((noreturn))
|
||||
#elif defined(_MSC_VER)
|
||||
|
Loading…
Reference in New Issue
Block a user