mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[Support] Add LLVM_CONSTEXPR.
Marks a decl as constexpr if the compiler supports it. llvm-svn: 172508
This commit is contained in:
parent
a1949388a1
commit
06c3809ddc
@ -95,6 +95,12 @@
|
||||
#define LLVM_OVERRIDE
|
||||
#endif
|
||||
|
||||
#if __has_feature(cxx_constexpr) || defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
# define LLVM_CONSTEXPR constexpr
|
||||
#else
|
||||
# define LLVM_CONSTEXPR
|
||||
#endif
|
||||
|
||||
/// LLVM_LIBRARY_VISIBILITY - If a class marked with this attribute is linked
|
||||
/// into a shared library, then the class should be private to the library and
|
||||
/// not accessible from outside it. Can also be used to mark variables and
|
||||
|
Loading…
Reference in New Issue
Block a user