Author: Jordan Rupprecht Date: 2025-08-22T23:33:07-05:00 New Revision: 53b3b78a49dcd954c53df0f1e029cdb1854f28ba
URL: https://github.com/llvm/llvm-project/commit/53b3b78a49dcd954c53df0f1e029cdb1854f28ba DIFF: https://github.com/llvm/llvm-project/commit/53b3b78a49dcd954c53df0f1e029cdb1854f28ba.diff LOG: Revert "[ADT] Deprecate the redirection from SmallSet to SmallPtrSet (#154891)" This reverts commit 01bbbb5b87e6ed67357478730adbe75c9762def8. Added: Modified: llvm/include/llvm/ADT/SmallSet.h Removed: ################################################################################ diff --git a/llvm/include/llvm/ADT/SmallSet.h b/llvm/include/llvm/ADT/SmallSet.h index 802a257aaf6ad..eb434bcb71717 100644 --- a/llvm/include/llvm/ADT/SmallSet.h +++ b/llvm/include/llvm/ADT/SmallSet.h @@ -269,28 +269,7 @@ class SmallSet { /// If this set is of pointer values, transparently switch over to using /// SmallPtrSet for performance. template <typename PointeeType, unsigned N> -class SmallSet<PointeeType *, N> : public SmallPtrSet<PointeeType *, N> { - using Base = SmallPtrSet<PointeeType *, N>; - -public: - // LLVM_DEPRECATED placed between "template" and "class" above won't work for - // some reason. Put a deprecation message on constructors instead. - LLVM_DEPRECATED("Use SmallPtrSet instead", "SmallPtrSet") - SmallSet() = default; - LLVM_DEPRECATED("Use SmallPtrSet instead", "SmallPtrSet") - SmallSet(const SmallSet &) = default; - LLVM_DEPRECATED("Use SmallPtrSet instead", "SmallPtrSet") - SmallSet(SmallSet &&) = default; - template <typename IterT> - LLVM_DEPRECATED("Use SmallPtrSet instead", "SmallPtrSet") - SmallSet(IterT Begin, IterT End) : Base(Begin, End) {} - template <typename Range> - LLVM_DEPRECATED("Use SmallPtrSet instead", "SmallPtrSet") - SmallSet(llvm::from_range_t, Range &&R) - : Base(llvm::from_range, std::move(R)) {} - LLVM_DEPRECATED("Use SmallPtrSet instead", "SmallPtrSet") - SmallSet(std::initializer_list<PointeeType *> L) : Base(L) {} -}; +class SmallSet<PointeeType*, N> : public SmallPtrSet<PointeeType*, N> {}; /// Equality comparison for SmallSet. /// _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
