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
23 changes: 22 additions & 1 deletion llvm/include/llvm/ADT/SmallSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,28 @@ 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> {};
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) {}
};

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