mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[Orc] Fix MSVC build errors due to r257265 by adding explicit move construction
and assignment to LogicalDylibResources. llvm-svn: 257269
This commit is contained in:
parent
277612653e
commit
cd4f591ec9
@ -128,6 +128,22 @@ private:
|
||||
std::unique_ptr<RuntimeDyld::SymbolResolver>)>
|
||||
ModuleAdderFtor;
|
||||
|
||||
LogicalDylibResources() = default;
|
||||
|
||||
// Explicit move constructor to make MSVC happy.
|
||||
LogicalDylibResources(LogicalDylibResources &&Other)
|
||||
: ExternalSymbolResolver(std::move(Other.ExternalSymbolResolver)),
|
||||
MemMgr(std::move(Other.MemMgr)),
|
||||
ModuleAdder(std::move(Other.ModuleAdder)) {}
|
||||
|
||||
// Explicit move assignment operator to make MSVC happy.
|
||||
LogicalDylibResources& operator=(LogicalDylibResources &&Other) {
|
||||
ExternalSymbolResolver = std::move(Other.ExternalSymbolResolver);
|
||||
MemMgr = std::move(Other.MemMgr);
|
||||
ModuleAdder = std::move(Other.ModuleAdder);
|
||||
return *this;
|
||||
}
|
||||
|
||||
SymbolResolverFtor ExternalSymbolResolver;
|
||||
std::unique_ptr<ResourceOwner<RuntimeDyld::MemoryManager>> MemMgr;
|
||||
ModuleAdderFtor ModuleAdder;
|
||||
|
Loading…
x
Reference in New Issue
Block a user