fix the gcc build

llvm-svn: 216018
This commit is contained in:
Rafael Espindola 2014-08-19 20:06:25 +00:00
parent a4e0584cbc
commit 851ae8ba7d

View File

@ -137,6 +137,7 @@ public:
OwningBinary(); OwningBinary();
OwningBinary(std::unique_ptr<T> Bin, std::unique_ptr<MemoryBuffer> Buf); OwningBinary(std::unique_ptr<T> Bin, std::unique_ptr<MemoryBuffer> Buf);
OwningBinary(OwningBinary<T>&& Other); OwningBinary(OwningBinary<T>&& Other);
OwningBinary<T> &operator=(OwningBinary<T> &&Other);
std::unique_ptr<T> &getBinary(); std::unique_ptr<T> &getBinary();
std::unique_ptr<MemoryBuffer> &getBuffer(); std::unique_ptr<MemoryBuffer> &getBuffer();
@ -153,6 +154,13 @@ template <typename T>
OwningBinary<T>::OwningBinary(OwningBinary &&Other) OwningBinary<T>::OwningBinary(OwningBinary &&Other)
: Bin(std::move(Other.Bin)), Buf(std::move(Other.Buf)) {} : 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() { template <typename T> std::unique_ptr<T> &OwningBinary<T>::getBinary() {
return Bin; return Bin;
} }