mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 14:46:53 +00:00
fix the gcc build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216018 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3414e45ffa
commit
6825609779
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user