mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
Add LLVM_HAS_INITIALIZER_LISTS for upcoming C++11 support. Use it in ArrayRef
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194362 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -403,4 +403,13 @@
|
||||
# define LLVM_ENUM_INT_TYPE(intty)
|
||||
#endif
|
||||
|
||||
/// \brief Does the compiler support generalized initializers (using braced
|
||||
/// lists and std::initializer_list).
|
||||
#if (__has_feature(cxx_generalized_initializers) \
|
||||
|| defined(__GXX_EXPERIMENTAL_CXX0X__))
|
||||
#define LLVM_HAS_INITIALIZER_LISTS 1
|
||||
#else
|
||||
#define LLVM_HAS_INITIALIZER_LISTS 0
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user