Fix the MSVC build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216014 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2014-08-19 19:45:15 +00:00
parent 06bb1ca1e0
commit a96d94aa6e

View File

@ -136,6 +136,8 @@ template <typename T> class OwningBinary {
public:
OwningBinary();
OwningBinary(std::unique_ptr<T> Bin, std::unique_ptr<MemoryBuffer> Buf);
OwningBinary(OwningBinary<T>&& Other);
std::unique_ptr<T> &getBinary();
std::unique_ptr<MemoryBuffer> &getBuffer();
};
@ -147,6 +149,10 @@ OwningBinary<T>::OwningBinary(std::unique_ptr<T> Bin,
template <typename T> OwningBinary<T>::OwningBinary() {}
template <typename T>
OwningBinary<T>::OwningBinary(OwningBinary &&Other)
: Bin(std::move(Other.Bin)), Buf(std::move(Other.Buf)) {}
template <typename T> std::unique_ptr<T> &OwningBinary<T>::getBinary() {
return Bin;
}