diff options
Diffstat (limited to 'llvm/include')
-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 |
6 files changed, 10 insertions, 0 deletions
diff --git a/llvm/include/llvm/ADT/STLExtras.h b/llvm/include/llvm/ADT/STLExtras.h index f0fe4fd9438..b61dab2459d 100644 --- a/llvm/include/llvm/ADT/STLExtras.h +++ b/llvm/include/llvm/ADT/STLExtras.h @@ -1415,6 +1415,8 @@ 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; @@ -1463,6 +1465,7 @@ 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 14223273c89..5fb13ad30e9 100644 --- a/llvm/include/llvm/DebugInfo/PDB/Native/DbiModuleList.h +++ b/llvm/include/llvm/DebugInfo/PDB/Native/DbiModuleList.h @@ -39,6 +39,7 @@ 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 aa38417bcf4..01bb7aff44b 100644 --- a/llvm/include/llvm/DebugInfo/PDB/Native/HashTable.h +++ b/llvm/include/llvm/DebugInfo/PDB/Native/HashTable.h @@ -56,6 +56,7 @@ 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 849dbd57f1a..e64ab9cdc6f 100644 --- a/llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h +++ b/llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h @@ -174,6 +174,7 @@ 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 e490389c8ec..1634983d26c 100644 --- a/llvm/include/llvm/Support/BinaryStreamArray.h +++ b/llvm/include/llvm/Support/BinaryStreamArray.h @@ -274,6 +274,7 @@ public: return !(*this == Other); } + FixedStreamArray(const FixedStreamArray &) = default; FixedStreamArray &operator=(const FixedStreamArray &) = default; const T &operator[](uint32_t Index) const { @@ -323,6 +324,8 @@ 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 06a2f9e6dc9..a298ecd9040 100644 --- a/llvm/include/llvm/Support/Timer.h +++ b/llvm/include/llvm/Support/Timer.h @@ -174,6 +174,7 @@ 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) {} |