[llvm] r177281 - Remove default copy ctor/assignment,	makes AttributeSet trivially copyable.
    Benjamin Kramer 
    benny.kra at googlemail.com
       
    Mon Mar 18 05:14:30 PDT 2013
    
    
  
Author: d0k
Date: Mon Mar 18 07:14:30 2013
New Revision: 177281
URL: http://llvm.org/viewvc/llvm-project?rev=177281&view=rev
Log:
Remove default copy ctor/assignment, makes AttributeSet trivially copyable.
And enables SmallVector's pod optimizations.
Modified:
    llvm/trunk/include/llvm/IR/Attributes.h
Modified: llvm/trunk/include/llvm/IR/Attributes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Attributes.h?rev=177281&r1=177280&r2=177281&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Attributes.h (original)
+++ llvm/trunk/include/llvm/IR/Attributes.h Mon Mar 18 07:14:30 2013
@@ -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
    
    
More information about the llvm-commits
mailing list