mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-03 19:15:30 +00:00
[ORC] Whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266712 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ffdeef411b
commit
4576e07c30
@ -29,7 +29,7 @@ public:
|
||||
DirectBufferWriter() = default;
|
||||
DirectBufferWriter(const char *Src, TargetAddress Dst, uint64_t Size)
|
||||
: Src(Src), Dst(Dst), Size(Size) {}
|
||||
|
||||
|
||||
const char *getSrc() const { return Src; }
|
||||
TargetAddress getDst() const { return Dst; }
|
||||
uint64_t getSize() const { return Size; }
|
||||
@ -47,7 +47,7 @@ inline std::error_code serialize(RPCChannel &C,
|
||||
return EC;
|
||||
return C.appendBytes(DBW.getSrc(), DBW.getSize());
|
||||
}
|
||||
|
||||
|
||||
inline std::error_code deserialize(RPCChannel &C,
|
||||
DirectBufferWriter &DBW) {
|
||||
TargetAddress Dst;
|
||||
@ -57,9 +57,9 @@ inline std::error_code deserialize(RPCChannel &C,
|
||||
if (auto EC = deserialize(C, Size))
|
||||
return EC;
|
||||
char *Addr = reinterpret_cast<char*>(static_cast<uintptr_t>(Dst));
|
||||
|
||||
|
||||
DBW = DirectBufferWriter(0, Dst, Size);
|
||||
|
||||
|
||||
return C.readBytes(Addr, Size);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user