[llvm] [SmallPtrSet] Remove SmallArray member (NFC) (PR #118099)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 29 10:54:18 PST 2024
================
@@ -231,14 +231,17 @@ class SmallPtrSetImplBase : public DebugEpochBase {
protected:
/// swap - Swaps the elements of two sets.
/// Note: This method assumes that both sets have the same small size.
- void swap(SmallPtrSetImplBase &RHS);
+ void swap(const void **SmallStorage, const void **RHSSmallStorage,
+ SmallPtrSetImplBase &RHS);
- void CopyFrom(const SmallPtrSetImplBase &RHS);
- void MoveFrom(unsigned SmallSize, SmallPtrSetImplBase &&RHS);
+ void CopyFrom(const void **SmallStorage, const SmallPtrSetImplBase &RHS);
----------------
MaskRay wrote:
Optional: as you are changing the signature, you can rename MoveFrom to moveFrom to improve the naming consistency.
https://github.com/llvm/llvm-project/pull/118099
More information about the llvm-commits
mailing list