forked from OSchip/llvm-project
[ORC] Add explicit move construction/assignment to
OrcRemoteTargetClient::ObjectAllocs. More MSVC bot appeasement. llvm-svn: 257382
This commit is contained in:
parent
ba19d18d78
commit
bdaff8d66b
|
@ -266,9 +266,6 @@ public:
|
||||||
: Size(Size), Align(Align), Contents(new char[Size + Align - 1]),
|
: Size(Size), Align(Align), Contents(new char[Size + Align - 1]),
|
||||||
RemoteAddr(0) {}
|
RemoteAddr(0) {}
|
||||||
|
|
||||||
Alloc(const Alloc&) = delete;
|
|
||||||
Alloc& operator=(const Alloc&) = delete;
|
|
||||||
|
|
||||||
Alloc(Alloc &&Other)
|
Alloc(Alloc &&Other)
|
||||||
: Size(std::move(Other.Size)), Align(std::move(Other.Align)),
|
: Size(std::move(Other.Size)), Align(std::move(Other.Align)),
|
||||||
Contents(std::move(Other.Contents)),
|
Contents(std::move(Other.Contents)),
|
||||||
|
@ -308,6 +305,25 @@ public:
|
||||||
struct ObjectAllocs {
|
struct ObjectAllocs {
|
||||||
ObjectAllocs()
|
ObjectAllocs()
|
||||||
: RemoteCodeAddr(0), RemoteRODataAddr(0), RemoteRWDataAddr(0) {}
|
: RemoteCodeAddr(0), RemoteRODataAddr(0), RemoteRWDataAddr(0) {}
|
||||||
|
|
||||||
|
ObjectAllocs(ObjectAllocs &&Other)
|
||||||
|
: RemoteCodeAddr(std::move(Other.RemoteCodeAddr)),
|
||||||
|
RemoteRODataAddr(std::move(Other.RemoteRODataAddr)),
|
||||||
|
RemoteRWDataAddr(std::move(Other.RemoteRWDataAddr)),
|
||||||
|
CodeAllocs(std::move(Other.CodeAllocs)),
|
||||||
|
RODataAllocs(std::move(Other.RODataAllocs)),
|
||||||
|
RWDataAllocs(std::move(Other.RWDataAllocs)) {}
|
||||||
|
|
||||||
|
ObjectAllocs &operator=(ObjectAllocs &&Other) {
|
||||||
|
RemoteCodeAddr = std::move(Other.RemoteCodeAddr);
|
||||||
|
RemoteRODataAddr = std::move(Other.RemoteRODataAddr);
|
||||||
|
RemoteRWDataAddr = std::move(Other.RemoteRWDataAddr);
|
||||||
|
CodeAllocs = std::move(Other.CodeAllocs);
|
||||||
|
RODataAllocs = std::move(Other.RODataAllocs);
|
||||||
|
RWDataAllocs = std::move(Other.RWDataAllocs);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
TargetAddress RemoteCodeAddr;
|
TargetAddress RemoteCodeAddr;
|
||||||
TargetAddress RemoteRODataAddr;
|
TargetAddress RemoteRODataAddr;
|
||||||
TargetAddress RemoteRWDataAddr;
|
TargetAddress RemoteRWDataAddr;
|
||||||
|
|
Loading…
Reference in New Issue