OSDN Git Service

Revert r237766, "Support: Introduce LLVM_FALLTHROUGH macro."
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 21 May 2015 19:44:44 +0000 (19:44 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 21 May 2015 19:44:44 +0000 (19:44 +0000)
The value of this macro seems to be very low unless we actually start
using it everywhere, and I don't have immediate plans to make that
happen.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237941 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Compiler.h

index 4da7fd4..c81fbaf 100644 (file)
 # define __has_attribute(x) 0
 #endif
 
-#ifndef __has_cpp_attribute
-# define __has_cpp_attribute(x) 0
-#endif
-
 #ifndef __has_builtin
 # define __has_builtin(x) 0
 #endif
 #define LLVM_THREAD_LOCAL
 #endif
 
-/// \macro LLVM_FALLTHROUGH
-/// \brief Marks an empty statement preceding a deliberate switch fallthrough.
-#if __has_cpp_attribute(clang::fallthrough)
-#define LLVM_FALLTHROUGH [[clang::fallthrough]]
-#else
-#define LLVM_FALLTHROUGH
-#endif
-
 #endif