Remove default copy ctor/assignment, makes AttributeSet trivially copyable.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 18 Mar 2013 12:14:30 +0000 (12:14 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 18 Mar 2013 12:14:30 +0000 (12:14 +0000)
And enables SmallVector's pod optimizations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177281 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Attributes.h

index ddb8ea41c15149ac038faa61a5b250e28df10e2d..074b38779ae829da27ece11a8fe7b669e86c5432 100644 (file)
@@ -226,11 +226,6 @@ private:
   explicit AttributeSet(AttributeSetImpl *LI) : pImpl(LI) {}
 public:
   AttributeSet() : pImpl(0) {}
-  AttributeSet(const AttributeSet &P) : pImpl(P.pImpl) {}
-  const AttributeSet &operator=(const AttributeSet &RHS) {
-    pImpl = RHS.pImpl;
-    return *this;
-  }
 
   //===--------------------------------------------------------------------===//
   // AttributeSet Construction and Mutation