From: Benjamin Kramer Date: Fri, 16 Nov 2012 22:22:20 +0000 (+0000) Subject: Remove default public copy ctors. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41c4905521a394e8aeb0310742fb293a2af38a61;p=platform%2Fupstream%2Fllvm.git Remove default public copy ctors. They are just useless and prevent SmallVector from picking an optimized codepath for memcpyable elements. llvm-svn: 168211 --- diff --git a/llvm/include/llvm/Attributes.h b/llvm/include/llvm/Attributes.h index 5ace200..0d6ce51 100644 --- a/llvm/include/llvm/Attributes.h +++ b/llvm/include/llvm/Attributes.h @@ -92,11 +92,6 @@ private: Attributes(AttributesImpl *A) : Attrs(A) {} public: Attributes() : Attrs(0) {} - Attributes(const Attributes &A) : Attrs(A.Attrs) {} - Attributes &operator=(const Attributes &A) { - Attrs = A.Attrs; - return *this; - } /// get - Return a uniquified Attributes object. This takes the uniquified /// value from the Builder and wraps it in the Attributes class. @@ -199,7 +194,6 @@ public: AttrBuilder() : Bits(0) {} explicit AttrBuilder(uint64_t B) : Bits(B) {} AttrBuilder(const Attributes &A) : Bits(A.Raw()) {} - AttrBuilder(const AttrBuilder &B) : Bits(B.Bits) {} void clear() { Bits = 0; }