[Orc] Use '= default' for move constructor/assignment as per dblaikie's review.

Thanks Dave!

llvm-svn: 250749
This commit is contained in:
Lang Hames 2015-10-19 22:49:18 +00:00
parent 9934b26b0f
commit 16a4cfb80d
1 changed files with 3 additions and 12 deletions

View File

@ -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");