diff options
| author | Lang Hames <lhames@gmail.com> | 2015-10-19 22:49:18 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2015-10-19 22:49:18 +0000 |
| commit | 16a4cfb80d98395d37a04243ed67c3ea3f75cd93 (patch) | |
| tree | 87bab1d6881f269c211650f01d7eb56078e6f467 | |
| parent | 9934b26b0f8c9e4310e51e77def56044379cff1b (diff) | |
| download | bcm5719-llvm-16a4cfb80d98395d37a04243ed67c3ea3f75cd93.tar.gz bcm5719-llvm-16a4cfb80d98395d37a04243ed67c3ea3f75cd93.zip | |
[Orc] Use '= default' for move constructor/assignment as per dblaikie's review.
Thanks Dave!
llvm-svn: 250749
| -rw-r--r-- | llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h b/llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h index bf649af5037..a72805d2af9 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"); |

