diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2015-05-21 19:44:44 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2015-05-21 19:44:44 +0000 |
commit | 374929e1917a4164d01cc64ad989893d29adce47 (patch) | |
tree | f2cefc7d0f00b4e718d3ee75336a57cec2f9f064 /llvm | |
parent | e92c1bfa4b8d14215ae92a9fc911d92eb73f9a84 (diff) | |
download | bcm5719-llvm-374929e1917a4164d01cc64ad989893d29adce47.tar.gz bcm5719-llvm-374929e1917a4164d01cc64ad989893d29adce47.zip |
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.
llvm-svn: 237941
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/Support/Compiler.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h index 4da7fd48fa5..c81fbaff9db 100644 --- a/llvm/include/llvm/Support/Compiler.h +++ b/llvm/include/llvm/Support/Compiler.h @@ -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 |