mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
[Support] Drop verbose _ATTRIBUTE from LLVM_ATTRIBUTE_{READONLY,READNONE} macro
names. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152413 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
89d8139d37
commit
75c0d8e0d8
@ -146,7 +146,7 @@ public:
|
||||
/// The particular intrinsic functions which correspond to this value are
|
||||
/// defined in llvm/Intrinsics.h.
|
||||
///
|
||||
unsigned getIntrinsicID() const LLVM_ATTRIBUTE_READONLY;
|
||||
unsigned getIntrinsicID() const LLVM_READONLY;
|
||||
bool isIntrinsic() const { return getIntrinsicID() != 0; }
|
||||
|
||||
/// getCallingConv()/setCallingConv(CC) - These method get and set the
|
||||
|
@ -49,24 +49,24 @@
|
||||
#define LLVM_ATTRIBUTE_UNUSED
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__ // aka 'ATTRIBUTE_CONST' but following LLVM Conventions.
|
||||
#define LLVM_ATTRIBUTE_READNONE __attribute__((__const__))
|
||||
#else
|
||||
#define LLVM_ATTRIBUTE_READNONE
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__ // aka 'ATTRIBUTE_PURE' but following LLVM Conventions.
|
||||
#define LLVM_ATTRIBUTE_READONLY __attribute__((__pure__))
|
||||
#else
|
||||
#define LLVM_ATTRIBUTE_READONLY
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ >= 4) && !defined(__MINGW32__) && !defined(__CYGWIN__)
|
||||
#define LLVM_ATTRIBUTE_WEAK __attribute__((__weak__))
|
||||
#else
|
||||
#define LLVM_ATTRIBUTE_WEAK
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__ // aka 'CONST' but following LLVM Conventions.
|
||||
#define LLVM_READNONE __attribute__((__const__))
|
||||
#else
|
||||
#define LLVM_READNONE
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__ // aka 'PURE' but following LLVM Conventions.
|
||||
#define LLVM_READONLY __attribute__((__pure__))
|
||||
#else
|
||||
#define LLVM_READONLY
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ >= 4)
|
||||
#define BUILTIN_EXPECT(EXPR, VALUE) __builtin_expect((EXPR), (VALUE))
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user