Rename END_WITH_NULL to LLVM_END_WITH_NULL and move to Compiler.h

We shouldn't put this kind of attribute stuff in DataTypes.h.

Leave the END_WITH_NULL name for now so I can update clang without
making build spam.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221215 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Kleckner
2014-11-04 01:12:21 +00:00
parent 67bcf74b14
commit d282ca71b0
7 changed files with 17 additions and 21 deletions

View File

@ -139,6 +139,14 @@
#define LLVM_LIBRARY_VISIBILITY
#endif
#if __has_attribute(sentinel) || LLVM_GNUC_PREREQ(3, 0, 0)
#define END_WITH_NULL __attribute__((sentinel))
#define LLVM_END_WITH_NULL __attribute__((sentinel))
#else
#define END_WITH_NULL
#define LLVM_END_WITH_NULL
#endif
#if __has_attribute(used) || LLVM_GNUC_PREREQ(3, 1, 0)
#define LLVM_ATTRIBUTE_USED __attribute__((__used__))
#else