mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
-Wdeprecated-clean: Fix cases of violating the rule of 5 in ways that are deprecated in C++11
Remove some unnecessary explicit special members in Hexagon that, once removed, allow the other implicit special members to be used without depending on deprecated features. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243825 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
3d171d4f73
commit
b80eede641
2 files changed
+1
-9
No files matched your search
@@ -77,7 +77,6 @@ private:
|
|||||||
// Abstraction of a reference to bit at position Pos from a register Reg.
|
// Abstraction of a reference to bit at position Pos from a register Reg.
|
||||||
struct BitTracker::BitRef {
|
struct BitTracker::BitRef {
|
||||||
BitRef(unsigned R = 0, uint16_t P = 0) : Reg(R), Pos(P) {}
|
BitRef(unsigned R = 0, uint16_t P = 0) : Reg(R), Pos(P) {}
|
||||||
BitRef(const BitRef &BR) : Reg(BR.Reg), Pos(BR.Pos) {}
|
|
||||||
bool operator== (const BitRef &BR) const {
|
bool operator== (const BitRef &BR) const {
|
||||||
// If Reg is 0, disregard Pos.
|
// If Reg is 0, disregard Pos.
|
||||||
return Reg == BR.Reg && (Reg == 0 || Pos == BR.Pos);
|
return Reg == BR.Reg && (Reg == 0 || Pos == BR.Pos);
|
||||||
@@ -144,7 +143,6 @@ struct BitTracker::BitValue {
|
|||||||
|
|
||||||
BitValue(ValueType T = Top) : Type(T) {}
|
BitValue(ValueType T = Top) : Type(T) {}
|
||||||
BitValue(bool B) : Type(B ? One : Zero) {}
|
BitValue(bool B) : Type(B ? One : Zero) {}
|
||||||
BitValue(const BitValue &V) : Type(V.Type), RefI(V.RefI) {}
|
|
||||||
BitValue(unsigned Reg, uint16_t Pos) : Type(Ref), RefI(Reg, Pos) {}
|
BitValue(unsigned Reg, uint16_t Pos) : Type(Ref), RefI(Reg, Pos) {}
|
||||||
|
|
||||||
bool operator== (const BitValue &V) const {
|
bool operator== (const BitValue &V) const {
|
||||||
@@ -277,11 +275,6 @@ struct BitTracker::RegisterCell {
|
|||||||
return !operator==(RC);
|
return !operator==(RC);
|
||||||
}
|
}
|
||||||
|
|
||||||
const RegisterCell &operator=(const RegisterCell &RC) {
|
|
||||||
Bits = RC.Bits;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Generate a "ref" cell for the corresponding register. In the resulting
|
// Generate a "ref" cell for the corresponding register. In the resulting
|
||||||
// cell each bit will be described as being the same as the corresponding
|
// cell each bit will be described as being the same as the corresponding
|
||||||
// bit in register Reg (i.e. the cell is "defined" by register Reg).
|
// bit in register Reg (i.e. the cell is "defined" by register Reg).
|
||||||
|
|||||||
@@ -77,9 +77,8 @@ namespace {
|
|||||||
namespace {
|
namespace {
|
||||||
// Set of virtual registers, based on BitVector.
|
// Set of virtual registers, based on BitVector.
|
||||||
struct RegisterSet : private BitVector {
|
struct RegisterSet : private BitVector {
|
||||||
RegisterSet() : BitVector() {}
|
RegisterSet() = default;
|
||||||
explicit RegisterSet(unsigned s, bool t = false) : BitVector(s, t) {}
|
explicit RegisterSet(unsigned s, bool t = false) : BitVector(s, t) {}
|
||||||
RegisterSet(const RegisterSet &RS) : BitVector(RS) {}
|
|
||||||
|
|
||||||
using BitVector::clear;
|
using BitVector::clear;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user