forked from OSchip/llvm-project
[Orc] Use '= default' for move constructor/assignment as per dblaikie's review.
Thanks Dave! llvm-svn: 250749
This commit is contained in:
parent
9934b26b0f
commit
16a4cfb80d
|
@ -69,21 +69,12 @@ private:
|
|||
|
||||
LogicalModuleResources() {}
|
||||
|
||||
LogicalModuleResources(LogicalModuleResources &&Other) {
|
||||
SourceModule = std::move(Other.SourceModule);
|
||||
StubsToClone = std::move(StubsToClone);
|
||||
StubsMgr = std::move(StubsMgr);
|
||||
}
|
||||
|
||||
// Explicit move constructor to make MSVC happy.
|
||||
LogicalModuleResources& operator=(LogicalModuleResources &&Other) {
|
||||
SourceModule = std::move(Other.SourceModule);
|
||||
StubsToClone = std::move(StubsToClone);
|
||||
StubsMgr = std::move(StubsMgr);
|
||||
return *this;
|
||||
}
|
||||
LogicalModuleResources(LogicalModuleResources &&Other) = default;
|
||||
|
||||
// Explicit move assignment to make MSVC happy.
|
||||
LogicalModuleResources& operator=(LogicalModuleResources &&Other) = default;
|
||||
|
||||
JITSymbol findSymbol(StringRef Name, bool ExportedSymbolsOnly) {
|
||||
if (Name.endswith("$stub_ptr") && !ExportedSymbolsOnly) {
|
||||
assert(!ExportedSymbolsOnly && "Stubs are never exported");
|
||||
|
|
Loading…
Reference in New Issue