[llvm] r284996 - Revert r284972 and remove other defaulted copy/move constructors/=
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 24 10:40:46 PDT 2016
Author: kparzysz
Date: Mon Oct 24 12:40:46 2016
New Revision: 284996
URL: http://llvm.org/viewvc/llvm-project?rev=284996&view=rev
Log:
Revert r284972 and remove other defaulted copy/move constructors/=
David Blaikie pointed out that we get them for free without having to
write anything.
Modified:
llvm/trunk/lib/Target/Hexagon/RDFGraph.h
Modified: llvm/trunk/lib/Target/Hexagon/RDFGraph.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/RDFGraph.h?rev=284996&r1=284995&r2=284996&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/RDFGraph.h (original)
+++ llvm/trunk/lib/Target/Hexagon/RDFGraph.h Mon Oct 24 12:40:46 2016
@@ -328,10 +328,6 @@ namespace rdf {
template <typename T> struct NodeAddr {
NodeAddr() : Addr(nullptr), Id(0) {}
NodeAddr(T A, NodeId I) : Addr(A), Id(I) {}
- NodeAddr(const NodeAddr&) = default;
- NodeAddr(NodeAddr&&) = default;
- NodeAddr &operator= (const NodeAddr&) = default;
- NodeAddr &operator= (NodeAddr&&) = default;
bool operator== (const NodeAddr<T> &NA) const {
assert((Addr == NA.Addr) == (Id == NA.Id));
@@ -409,10 +405,6 @@ namespace rdf {
RegisterRef() : RegisterRef(0) {}
explicit RegisterRef(RegisterId R, LaneBitmask M = ~LaneBitmask(0))
: Reg(R), Mask(R != 0 ? M : 0) {}
- RegisterRef(const RegisterRef&) = default;
- RegisterRef(RegisterRef&&) = default;
- RegisterRef &operator= (const RegisterRef&) = default;
- RegisterRef &operator= (RegisterRef&&) = default;
operator bool() const { return Reg != 0 && Mask != LaneBitmask(0); }
bool operator== (const RegisterRef &RR) const {
return Reg == RR.Reg && Mask == RR.Mask;
More information about the llvm-commits
mailing list