summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2016-01-11 17:32:03 +0000
committerLang Hames <lhames@gmail.com>2016-01-11 17:32:03 +0000
commit510ee4b42fd526ffb6b4adf480a5f35116397810 (patch)
tree3bec6e39ea06e3b609d52aabcd66486ea9fb9e4d
parentf5c136186f4f6b1c3b2bb4b2e7a57496592a0117 (diff)
downloadbcm5719-llvm-510ee4b42fd526ffb6b4adf480a5f35116397810.tar.gz
bcm5719-llvm-510ee4b42fd526ffb6b4adf480a5f35116397810.zip
[Orc] More explicit move construction/assignment to appease MSVC.
llvm-svn: 257358
-rw-r--r--llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h b/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
index accf4e0f674..1c0c0996ba4 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
@@ -252,6 +252,19 @@ public:
: Size(Size), Align(Align), Contents(new char[Size + Align - 1]),
RemoteAddr(0) {}
+ Alloc(Alloc &&Other)
+ : Size(std::move(Other.Size)), Align(std::move(Other.Align)),
+ Contents(std::move(Other.Contents)),
+ RemoteAddr(std::move(Other.RemoteAddr)) {}
+
+ Alloc &operator=(Alloc &&Other) {
+ Size = std::move(Other.Size);
+ Align = std::move(Other.Align);
+ Contents = std::move(Other.Contents);
+ RemoteAddr = std::move(Other.RemoteAddr);
+ return *this;
+ }
+
uint64_t getSize() const { return Size; }
unsigned getAlign() const { return Align; }
OpenPOWER on IntegriCloud