From: Kazu Hirata Date: Sat, 19 Nov 2022 21:21:27 +0000 (-0800) Subject: [ADT] Remove deperecated methods in OptionalStorage X-Git-Tag: upstream/17.0.6~27095 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2baa99b2a8e43ecb3c43056a964c89f4ee6651d2;p=platform%2Fupstream%2Fllvm.git [ADT] Remove deperecated methods in OptionalStorage Note that I deprecated these methods on August 7, 2022 in commit commit b5f8d42efe3e246d582d4a1a328fac915e4ce8dc. --- diff --git a/llvm/include/llvm/ADT/Optional.h b/llvm/include/llvm/ADT/Optional.h index 36ad621..fc4737b 100644 --- a/llvm/include/llvm/ADT/Optional.h +++ b/llvm/include/llvm/ADT/Optional.h @@ -92,36 +92,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();