1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Revert 'Fixed -Wdeprecated-copy warnings. NFCI.'

pdbutil's test is failing.
This commit is contained in:
Dávid Bolvanský 2019-11-23 21:31:17 +01:00
parent 3298e73cdd
commit 0154fb24b2
9 changed files with 2 additions and 27 deletions

View File

@ -1415,8 +1415,6 @@ template <typename R> struct result_pair {
result_pair(std::size_t Index, IterOfRange<R> Iter)
: Index(Index), Iter(Iter) {}
result_pair<R>(const result_pair<R> &Other)
: Index(Other.Index), Iter(Other.Iter) {}
result_pair<R> &operator=(const result_pair<R> &Other) {
Index = Other.Index;
Iter = Other.Iter;
@ -1465,7 +1463,6 @@ public:
return Result.Iter == RHS.Result.Iter;
}
enumerator_iter<R>(const enumerator_iter<R> &Other) : Result(Other.Result) {}
enumerator_iter<R> &operator=(const enumerator_iter<R> &Other) {
Result = Other.Result;
return *this;

View File

@ -39,7 +39,6 @@ public:
DbiModuleSourceFilesIterator(const DbiModuleList &Modules, uint32_t Modi,
uint16_t Filei);
DbiModuleSourceFilesIterator() = default;
DbiModuleSourceFilesIterator(const DbiModuleSourceFilesIterator &R) = default;
DbiModuleSourceFilesIterator &
operator=(const DbiModuleSourceFilesIterator &R) = default;

View File

@ -56,7 +56,6 @@ public:
}
}
HashTableIterator(const HashTableIterator &R) : Map(R.Map) {}
HashTableIterator &operator=(const HashTableIterator &R) {
Map = R.Map;
return *this;

View File

@ -174,7 +174,6 @@ struct DiagnosticPredicate {
: DiagnosticPredicateTy::NearMatch) {}
DiagnosticPredicate(DiagnosticPredicateTy T) : Type(T) {}
DiagnosticPredicate(const DiagnosticPredicate &) = default;
DiagnosticPredicate& operator=(const DiagnosticPredicate &) = default;
operator bool() const { return Type == DiagnosticPredicateTy::Match; }
bool isMatch() const { return Type == DiagnosticPredicateTy::Match; }

View File

@ -274,7 +274,6 @@ public:
return !(*this == Other);
}
FixedStreamArray(const FixedStreamArray &) = default;
FixedStreamArray &operator=(const FixedStreamArray &) = default;
const T &operator[](uint32_t Index) const {
@ -324,8 +323,6 @@ public:
FixedStreamArrayIterator(const FixedStreamArray<T> &Array, uint32_t Index)
: Array(Array), Index(Index) {}
FixedStreamArrayIterator<T>(const FixedStreamArrayIterator<T> &Other)
: Array(Other.Array), Index(Other.Index) {}
FixedStreamArrayIterator<T> &
operator=(const FixedStreamArrayIterator<T> &Other) {
Array = Other.Array;

View File

@ -174,7 +174,6 @@ class TimerGroup {
std::string Description;
PrintRecord(const PrintRecord &Other) = default;
PrintRecord &operator=(const PrintRecord &Other) = default;
PrintRecord(const TimeRecord &Time, const std::string &Name,
const std::string &Description)
: Time(Time), Name(Name), Description(Description) {}

View File

@ -134,21 +134,11 @@ namespace {
uint32_t properties() const;
unsigned size() const { return Size; }
LatticeCell(const LatticeCell &L) {
// This memcpy also copies Properties (when L.Size == 0).
uint32_t N =
L.IsSpecial ? sizeof L.Properties : L.Size * sizeof(const Constant *);
memcpy(Values, L.Values, N);
Kind = L.Kind;
Size = L.Size;
IsSpecial = L.IsSpecial;
}
LatticeCell &operator=(const LatticeCell &L) {
LatticeCell &operator= (const LatticeCell &L) {
if (this != &L) {
// This memcpy also copies Properties (when L.Size == 0).
uint32_t N = L.IsSpecial ? sizeof L.Properties
: L.Size * sizeof(const Constant *);
: L.Size*sizeof(const Constant*);
memcpy(Values, L.Values, N);
Kind = L.Kind;
Size = L.Size;

View File

@ -93,10 +93,6 @@ namespace {
RegisterSet() = default;
explicit RegisterSet(unsigned s, bool t = false) : BitVector(s, t) {}
RegisterSet(const RegisterSet &RS) : BitVector(RS) {}
RegisterSet &operator=(const RegisterSet &RS) {
BitVector::operator=(RS);
return *this;
}
using BitVector::clear;

View File

@ -194,7 +194,6 @@ struct TypeSetByHwMode : public InfoByHwMode<MachineValueTypeSet> {
TypeSetByHwMode() = default;
TypeSetByHwMode(const TypeSetByHwMode &VTS) = default;
TypeSetByHwMode &operator=(const TypeSetByHwMode &) = default;
TypeSetByHwMode(MVT::SimpleValueType VT)
: TypeSetByHwMode(ValueTypeByHwMode(VT)) {}
TypeSetByHwMode(ValueTypeByHwMode VT)