Remove copy ctors that did the same thing as the default one.

The code added nothing but potentially disabled move semantics and made
types non-trivially copyable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203563 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer
2014-03-11 11:32:49 +00:00
parent ca396e391e
commit dabc5073b2
13 changed files with 0 additions and 63 deletions

View File

@@ -403,10 +403,6 @@ public:
addAttribute(A);
}
AttrBuilder(AttributeSet AS, unsigned Idx);
AttrBuilder(const AttrBuilder &B)
: Attrs(B.Attrs),
TargetDepAttrs(B.TargetDepAttrs.begin(), B.TargetDepAttrs.end()),
Alignment(B.Alignment), StackAlignment(B.StackAlignment) {}
void clear();

View File

@@ -164,9 +164,6 @@ public:
///Default constructor.
ConstraintInfo();
/// Copy constructor.
ConstraintInfo(const ConstraintInfo &other);
/// Parse - Analyze the specified string (e.g. "=*&{eax}") and fill in the
/// fields in this structure. If the constraint string is not understood,
/// return true, otherwise return false.

View File

@@ -219,7 +219,6 @@ class NamedMDNode : public ilist_node<NamedMDNode> {
public:
op_iterator_impl() : Node(0), Idx(0) { }
op_iterator_impl(const op_iterator_impl &o) : Node(o.Node), Idx(o.Idx) { }
bool operator==(const op_iterator_impl &o) const { return Idx == o.Idx; }
bool operator!=(const op_iterator_impl &o) const { return Idx != o.Idx; }
@@ -242,11 +241,6 @@ class NamedMDNode : public ilist_node<NamedMDNode> {
return tmp;
}
op_iterator_impl &operator=(const op_iterator_impl &o) {
Node = o.Node;
Idx = o.Idx;
return *this;
}
T1 operator*() const { return Node->getOperand(Idx); }
};