mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-13 01:15:32 +00:00
[Support] Add LLVM_CONSTEXPR.
Marks a decl as constexpr if the compiler supports it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172508 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
47f3934021
commit
b5f8cd5bb0
@ -95,6 +95,12 @@
|
|||||||
#define LLVM_OVERRIDE
|
#define LLVM_OVERRIDE
|
||||||
#endif
|
#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
|
/// 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
|
/// 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
|
/// not accessible from outside it. Can also be used to mark variables and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user