From e61c7b5220cd118c005cba94fc14e2598b68f59e Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Mon, 19 Oct 2015 22:49:18 +0000 Subject: [PATCH] [Orc] Use '= default' for move constructor/assignment as per dblaikie's review. Thanks Dave! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250749 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../ExecutionEngine/Orc/CompileOnDemandLayer.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h b/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h index bf649af5037..a72805d2af9 100644 --- a/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h +++ b/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h @@ -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"); -- 2.34.1