mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
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:
@@ -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();
|
||||
|
||||
|
@@ -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.
|
||||
|
@@ -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); }
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user