From: Rafael Espindola Date: Tue, 19 Aug 2014 19:45:15 +0000 (+0000) Subject: Fix the MSVC build. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a96d94aa6e7a7b5ea62c58496d9a4d005dc72705;p=oota-llvm.git Fix the MSVC build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216014 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Object/Binary.h b/include/llvm/Object/Binary.h index bebbaf62f6f..d5bb182442c 100644 --- a/include/llvm/Object/Binary.h +++ b/include/llvm/Object/Binary.h @@ -136,6 +136,8 @@ template class OwningBinary { public: OwningBinary(); OwningBinary(std::unique_ptr Bin, std::unique_ptr Buf); + OwningBinary(OwningBinary&& Other); + std::unique_ptr &getBinary(); std::unique_ptr &getBuffer(); }; @@ -147,6 +149,10 @@ OwningBinary::OwningBinary(std::unique_ptr Bin, template OwningBinary::OwningBinary() {} +template +OwningBinary::OwningBinary(OwningBinary &&Other) + : Bin(std::move(Other.Bin)), Buf(std::move(Other.Buf)) {} + template std::unique_ptr &OwningBinary::getBinary() { return Bin; }