[llvm] 903c30f - [Support] Remove LLVM_ATTRIBUTE_DEPRECATED
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 20 03:18:25 PDT 2022
Author: Nikita Popov
Date: 2022-04-20T12:16:41+02:00
New Revision: 903c30f4d1f3bc0d1aae9ca83af17c0062d02b40
URL: https://github.com/llvm/llvm-project/commit/903c30f4d1f3bc0d1aae9ca83af17c0062d02b40
DIFF: https://github.com/llvm/llvm-project/commit/903c30f4d1f3bc0d1aae9ca83af17c0062d02b40.diff
LOG: [Support] Remove LLVM_ATTRIBUTE_DEPRECATED
The guidance since D94219 is to use [[deprecated]] directly. Now
that all historical uses of the macro have been removed, drop the
macro itself.
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 262eca00014bf..65345ba0c7f68 100644
--- a/llvm/include/llvm/Support/Compiler.h
+++ b/llvm/include/llvm/Support/Compiler.h
@@ -313,11 +313,6 @@
#define LLVM_EXTENSION
#endif
-// LLVM_ATTRIBUTE_DEPRECATED(decl, "message")
-// This macro will be removed.
-// Use C++14's attribute instead: [[deprecated("message")]]
-#define LLVM_ATTRIBUTE_DEPRECATED(decl, message) [[deprecated(message)]] decl
-
/// LLVM_BUILTIN_UNREACHABLE - On compilers which support it, expands
/// to an expression which states that it is undefined behavior for the
/// compiler to reach this point. Otherwise is not defined.
More information about the llvm-commits
mailing list