Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion llvm/include/llvm/ADT/SmallSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,17 @@ 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 PointeeType, unsigned N>
class LLVM_DEPRECATED("Use SmallPtrSet instead", "SmallPtrSet")
DeprecatedSmallSet : public SmallPtrSet<PointeeType *, N> {};

template <typename PointeeType, unsigned N>
class SmallSet<PointeeType*, N> : public SmallPtrSet<PointeeType*, N> {};
class SmallSet<PointeeType *, N> : public DeprecatedSmallSet<PointeeType *, N> {
};

/// Equality comparison for SmallSet.
///
Expand Down
Loading