From 38889132d440261dc171be6bf95741f61ddc9028 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 20 Nov 2022 12:24:16 -0800 Subject: [PATCH] [ADT] Remove deperecated methods in OptionalStorage Note that I deprecated these methods on August 7, 2022 in commit commit b5f8d42efe3e246d582d4a1a328fac915e4ce8dc. --- llvm/include/llvm/ADT/Optional.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/llvm/include/llvm/ADT/Optional.h b/llvm/include/llvm/ADT/Optional.h index fc4737b..d504560 100644 --- a/llvm/include/llvm/ADT/Optional.h +++ b/llvm/include/llvm/ADT/Optional.h @@ -190,36 +190,19 @@ public: } constexpr bool has_value() const noexcept { return hasVal; } - LLVM_DEPRECATED("Use has_value instead.", "has_value") - constexpr bool hasValue() const noexcept { - return hasVal; - } T &value() &noexcept { assert(hasVal); return val; } - LLVM_DEPRECATED("Use value instead.", "value") T &getValue() &noexcept { - assert(hasVal); - return val; - } constexpr T const &value() const &noexcept { assert(hasVal); return val; } - LLVM_DEPRECATED("Use value instead.", "value") - constexpr T const &getValue() const &noexcept { - assert(hasVal); - return val; - } T &&value() &&noexcept { assert(hasVal); return std::move(val); } - LLVM_DEPRECATED("Use value instead.", "value") T &&getValue() &&noexcept { - assert(hasVal); - return std::move(val); - } template void emplace(Args &&...args) { reset(); -- 2.7.4