[llvm] r216018 - fix the gcc build
Rafael Espindola
rafael.espindola at gmail.com
Tue Aug 19 13:06:26 PDT 2014
Author: rafael
Date: Tue Aug 19 15:06:25 2014
New Revision: 216018
URL: http://llvm.org/viewvc/llvm-project?rev=216018&view=rev
Log:
fix the gcc build
Modified:
llvm/trunk/include/llvm/Object/Binary.h
Modified: llvm/trunk/include/llvm/Object/Binary.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/Binary.h?rev=216018&r1=216017&r2=216018&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/Binary.h (original)
+++ llvm/trunk/include/llvm/Object/Binary.h Tue Aug 19 15:06:25 2014
@@ -137,6 +137,7 @@ public:
OwningBinary();
OwningBinary(std::unique_ptr<T> Bin, std::unique_ptr<MemoryBuffer> Buf);
OwningBinary(OwningBinary<T>&& Other);
+ OwningBinary<T> &operator=(OwningBinary<T> &&Other);
std::unique_ptr<T> &getBinary();
std::unique_ptr<MemoryBuffer> &getBuffer();
@@ -153,6 +154,13 @@ template <typename T>
OwningBinary<T>::OwningBinary(OwningBinary &&Other)
: Bin(std::move(Other.Bin)), Buf(std::move(Other.Buf)) {}
+template <typename T>
+OwningBinary<T> &OwningBinary<T>::operator=(OwningBinary &&Other) {
+ Bin = std::move(Other.Bin);
+ Buf = std::move(Other.Buf);
+ return *this;
+}
+
template <typename T> std::unique_ptr<T> &OwningBinary<T>::getBinary() {
return Bin;
}
More information about the llvm-commits
mailing list