[llvm] 7f11850 - Revert "[ADT] Deprecate the redirection from SmallSet to SmallPtrSet (Take 2) (#155078) (#155622)

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 27 08:24:07 PDT 2025


Author: Mehdi Amini
Date: 2025-08-27T15:24:02Z
New Revision: 7f1185058279afeb2c88243edc031f06e27cc21b

URL: https://github.com/llvm/llvm-project/commit/7f1185058279afeb2c88243edc031f06e27cc21b
DIFF: https://github.com/llvm/llvm-project/commit/7f1185058279afeb2c88243edc031f06e27cc21b.diff

LOG: Revert "[ADT] Deprecate the redirection from SmallSet to SmallPtrSet (Take 2) (#155078) (#155622)

This reverts commit 9b493dcad25941911af94bd6a63fea5fb187b870.

There are hundreds of warnings when building LLVM/Clang because of this
right now. See the original PR for the detailed issues.

Also revert the follow-up fix "[ADT] Fix redirection of SmallSet to
SmallPtrSet (#155117)" This reverts commit
3ca1ca4301703ceadd0ab9c0b156bd6c0a3af7ec.

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 4c60b15224a45..7d8c328758d53 100644
--- a/llvm/include/llvm/ADT/SmallSet.h
+++ b/llvm/include/llvm/ADT/SmallSet.h
@@ -268,17 +268,8 @@ class SmallSet {
 
 /// If this set is of pointer values, transparently switch over to using
 /// SmallPtrSet for performance.
-///
-/// We use this middleman class DeprecatedSmallSet so that the deprecation
-/// warning works.  Placing LLVM_DEPRECATED just before SmallSet below won't
-/// work.
-template <typename PointerType, unsigned N>
-class LLVM_DEPRECATED("Use SmallPtrSet instead", "SmallPtrSet")
-    DeprecatedSmallSet : public SmallPtrSet<PointerType, N> {};
-
 template <typename PointeeType, unsigned N>
-class SmallSet<PointeeType *, N> : public DeprecatedSmallSet<PointeeType *, N> {
-};
+class SmallSet<PointeeType *, N> : public SmallPtrSet<PointeeType *, N> {};
 
 /// Equality comparison for SmallSet.
 ///


        


More information about the llvm-commits mailing list