Add back LLVM_FINAL macro. lld still needs it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202619 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper 2014-03-02 08:34:05 +00:00
parent 4eb03f049e
commit f432a326c5

View File

@ -106,6 +106,16 @@
#define LLVM_DELETED_FUNCTION #define LLVM_DELETED_FUNCTION
#endif #endif
/// LLVM_FINAL - Expands to 'final' if the compiler supports it.
/// Use to mark classes or virtual methods as final.
#if __has_feature(cxx_override_control) || \
(defined(__GXX_EXPERIMENTAL_CXX0X__) && __GNUC_PREREQ(4, 7)) || \
LLVM_MSC_PREREQ(1700)
#define LLVM_FINAL final
#else
#define LLVM_FINAL
#endif
/// LLVM_OVERRIDE - Expands to 'override' if the compiler supports it. /// LLVM_OVERRIDE - Expands to 'override' if the compiler supports it.
/// Use to mark virtual methods as overriding a base class method. /// Use to mark virtual methods as overriding a base class method.
#if __has_feature(cxx_override_control) || \ #if __has_feature(cxx_override_control) || \