[llvm] r237941 - Revert r237766, "Support: Introduce LLVM_FALLTHROUGH macro."

Peter Collingbourne peter at pcc.me.uk
Thu May 21 12:44:44 PDT 2015


Author: pcc
Date: Thu May 21 14:44:44 2015
New Revision: 237941

URL: http://llvm.org/viewvc/llvm-project?rev=237941&view=rev
Log:
Revert r237766, "Support: Introduce LLVM_FALLTHROUGH macro."

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.

Modified:
    llvm/trunk/include/llvm/Support/Compiler.h

Modified: llvm/trunk/include/llvm/Support/Compiler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Compiler.h?rev=237941&r1=237940&r2=237941&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Compiler.h (original)
+++ llvm/trunk/include/llvm/Support/Compiler.h Thu May 21 14:44:44 2015
@@ -29,10 +29,6 @@
 # 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
@@ -405,12 +401,4 @@
 #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





More information about the llvm-commits mailing list