[llvm] r266805 - [Orc] Add explicit move ops to OrcRemoteTargetRPCAPI for MSVC.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 19 12:35:17 PDT 2016


Author: lhames
Date: Tue Apr 19 14:35:16 2016
New Revision: 266805

URL: http://llvm.org/viewvc/llvm-project?rev=266805&view=rev
Log:
[Orc] Add explicit move ops to OrcRemoteTargetRPCAPI for MSVC.

Modified:
    llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h

Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h?rev=266805&r1=266804&r2=266805&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h Tue Apr 19 14:35:16 2016
@@ -85,6 +85,17 @@ protected:
   };
 
 public:
+
+  // FIXME: Remove constructors once MSVC supports synthesizing move-ops.
+  OrcRemoteTargetRPCAPI() = default;
+  OrcRemoteTargetRPCAPI(const OrcRemoteTargetRPCAPI&) = delete;
+  OrcRemoteTargetRPCAPI& operator=(const OrcRemoteTargetRPCAPI&) = delete;
+
+  OrcRemoteTargetRPCAPI(OrcRemoteTargetRPCAPI&&) {}
+  OrcRemoteTargetRPCAPI& operator=(OrcRemoteTargetRPCAPI&&) {
+    return *this;
+  }
+
   enum JITFuncId : uint32_t {
     InvalidId = RPCFunctionIdTraits<JITFuncId>::InvalidId,
     CallIntVoidId = RPCFunctionIdTraits<JITFuncId>::FirstValidId,




More information about the llvm-commits mailing list