[llvm] 0952989 - [Support] Remove LLVM_ATTRIBUTE_NORETURN
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 29 10:10:44 PDT 2021
Author: Alfonso Gregory
Date: 2021-07-29T10:10:37-07:00
New Revision: 09529892b518c8df8c24395e68e0a7a5e8bda5fb
URL: https://github.com/llvm/llvm-project/commit/09529892b518c8df8c24395e68e0a7a5e8bda5fb
DIFF: https://github.com/llvm/llvm-project/commit/09529892b518c8df8c24395e68e0a7a5e8bda5fb.diff
LOG: [Support] Remove LLVM_ATTRIBUTE_NORETURN
Code should use C++11 [[noreturn]] or C11 _Noreturn instead.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D106899
Added:
Modified:
llvm/include/llvm/Support/Compiler.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h
index 57052b596edbe..f5937be157aa4 100644
--- a/llvm/include/llvm/Support/Compiler.h
+++ b/llvm/include/llvm/Support/Compiler.h
@@ -242,14 +242,6 @@
#define LLVM_ATTRIBUTE_ALWAYS_INLINE inline
#endif
-#ifdef __GNUC__
-#define LLVM_ATTRIBUTE_NORETURN __attribute__((noreturn))
-#elif defined(_MSC_VER)
-#define LLVM_ATTRIBUTE_NORETURN __declspec(noreturn)
-#else
-#define LLVM_ATTRIBUTE_NORETURN
-#endif
-
#if __has_attribute(returns_nonnull) || LLVM_GNUC_PREREQ(4, 9, 0)
#define LLVM_ATTRIBUTE_RETURNS_NONNULL __attribute__((returns_nonnull))
#elif defined(_MSC_VER)
More information about the llvm-commits
mailing list