diff options
author | Dávid Bolvanský <david.bolvansky@gmail.com> | 2019-11-23 21:31:17 +0100 |
---|---|---|
committer | Dávid Bolvanský <david.bolvansky@gmail.com> | 2019-11-23 21:31:27 +0100 |
commit | 111a4cffa0a905c260fed99d0d52308906863a65 (patch) | |
tree | 03d33a3521ebdcb9d81c9352e5c77944962c2841 | |
parent | ecf9683dae8114105f73e0bf6f4c94b7ff21acfe (diff) | |
download | bcm5719-llvm-111a4cffa0a905c260fed99d0d52308906863a65.tar.gz bcm5719-llvm-111a4cffa0a905c260fed99d0d52308906863a65.zip |
Revert 'Fixed -Wdeprecated-copy warnings. NFCI.'
pdbutil's test is failing.
-rw-r--r-- | clang/include/clang/AST/ASTImporter.h | 8 | ||||
-rw-r--r-- | clang/include/clang/Sema/ObjCMethodList.h | 6 | ||||
-rw-r--r-- | llvm/include/llvm/ADT/STLExtras.h | 3 | ||||
-rw-r--r-- | llvm/include/llvm/DebugInfo/PDB/Native/DbiModuleList.h | 1 | ||||
-rw-r--r-- | llvm/include/llvm/DebugInfo/PDB/Native/HashTable.h | 1 | ||||
-rw-r--r-- | llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h | 1 | ||||
-rw-r--r-- | llvm/include/llvm/Support/BinaryStreamArray.h | 3 | ||||
-rw-r--r-- | llvm/include/llvm/Support/Timer.h | 1 | ||||
-rw-r--r-- | llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp | 14 | ||||
-rw-r--r-- | llvm/lib/Target/Hexagon/HexagonGenInsert.cpp | 4 | ||||
-rw-r--r-- | llvm/utils/TableGen/CodeGenDAGPatterns.h | 1 |
11 files changed, 4 insertions, 39 deletions
diff --git a/clang/include/clang/AST/ASTImporter.h b/clang/include/clang/AST/ASTImporter.h index 490b34bf95e..c82dcab35db 100644 --- a/clang/include/clang/AST/ASTImporter.h +++ b/clang/include/clang/AST/ASTImporter.h @@ -60,12 +60,8 @@ class TypeSourceInfo; static char ID; - ImportError() : Error(Unknown) {} - ImportError(const ImportError &Other) : Error(Other.Error) {} - ImportError &operator=(const ImportError &Other) { - Error = Other.Error; - return *this; - } + ImportError() : Error(Unknown) { } + ImportError(const ImportError &Other) : Error(Other.Error) { } ImportError(ErrorKind Error) : Error(Error) { } std::string toString() const; diff --git a/clang/include/clang/Sema/ObjCMethodList.h b/clang/include/clang/Sema/ObjCMethodList.h index 9e65e0d8e00..bd2ce2a9f01 100644 --- a/clang/include/clang/Sema/ObjCMethodList.h +++ b/clang/include/clang/Sema/ObjCMethodList.h @@ -36,12 +36,6 @@ struct ObjCMethodList { : MethodAndHasMoreThanOneDecl(L.MethodAndHasMoreThanOneDecl), NextAndExtraBits(L.NextAndExtraBits) {} - ObjCMethodList &operator=(const ObjCMethodList &L) { - MethodAndHasMoreThanOneDecl = L.MethodAndHasMoreThanOneDecl; - NextAndExtraBits = L.NextAndExtraBits; - return *this; - } - ObjCMethodList *getNext() const { return NextAndExtraBits.getPointer(); } unsigned getBits() const { return NextAndExtraBits.getInt(); } void setNext(ObjCMethodList *L) { NextAndExtraBits.setPointer(L); } diff --git a/llvm/include/llvm/ADT/STLExtras.h b/llvm/include/llvm/ADT/STLExtras.h index b61dab2459d..f0fe4fd9438 100644 --- a/llvm/include/llvm/ADT/STLExtras.h +++ b/llvm/include/llvm/ADT/STLExtras.h @@ -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; diff --git a/llvm/include/llvm/DebugInfo/PDB/Native/DbiModuleList.h b/llvm/include/llvm/DebugInfo/PDB/Native/DbiModuleList.h index 5fb13ad30e9..14223273c89 100644 --- a/llvm/include/llvm/DebugInfo/PDB/Native/DbiModuleList.h +++ b/llvm/include/llvm/DebugInfo/PDB/Native/DbiModuleList.h @@ -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; diff --git a/llvm/include/llvm/DebugInfo/PDB/Native/HashTable.h b/llvm/include/llvm/DebugInfo/PDB/Native/HashTable.h index 01bb7aff44b..aa38417bcf4 100644 --- a/llvm/include/llvm/DebugInfo/PDB/Native/HashTable.h +++ b/llvm/include/llvm/DebugInfo/PDB/Native/HashTable.h @@ -56,7 +56,6 @@ public: } } - HashTableIterator(const HashTableIterator &R) : Map(R.Map) {} HashTableIterator &operator=(const HashTableIterator &R) { Map = R.Map; return *this; diff --git a/llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h b/llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h index e64ab9cdc6f..849dbd57f1a 100644 --- a/llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h +++ b/llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h @@ -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; } diff --git a/llvm/include/llvm/Support/BinaryStreamArray.h b/llvm/include/llvm/Support/BinaryStreamArray.h index 1634983d26c..e490389c8ec 100644 --- a/llvm/include/llvm/Support/BinaryStreamArray.h +++ b/llvm/include/llvm/Support/BinaryStreamArray.h @@ -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; diff --git a/llvm/include/llvm/Support/Timer.h b/llvm/include/llvm/Support/Timer.h index a298ecd9040..06a2f9e6dc9 100644 --- a/llvm/include/llvm/Support/Timer.h +++ b/llvm/include/llvm/Support/Timer.h @@ -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) {} diff --git a/llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp b/llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp index 5b61d1084e0..3f759cdd57c 100644 --- a/llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp +++ b/llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp @@ -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; diff --git a/llvm/lib/Target/Hexagon/HexagonGenInsert.cpp b/llvm/lib/Target/Hexagon/HexagonGenInsert.cpp index 2f29e88bc98..5a1d04c5797 100644 --- a/llvm/lib/Target/Hexagon/HexagonGenInsert.cpp +++ b/llvm/lib/Target/Hexagon/HexagonGenInsert.cpp @@ -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; diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.h b/llvm/utils/TableGen/CodeGenDAGPatterns.h index 6732db5dfb6..80fc932a7a5 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.h +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.h @@ -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) |