mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
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:
parent
06bb1ca1e0
commit
a96d94aa6e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user