From 16a4cfb80d98395d37a04243ed67c3ea3f75cd93 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! llvm-svn: 250749 --- .../ExecutionEngine/Orc/CompileOnDemandLayer.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h b/llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h index bf649af5037e..a72805d2af96 100644 --- a/llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h +++ b/llvm/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");