mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Added overloaded version of Deserializer::ReadOwnedPtr which allows
the target pointer to be passed by reference. This can result in less typing, as the object to be deserialized can be inferred from the argument. llvm-svn: 43647
This commit is contained in:
parent
bf8e7c6644
commit
0501d830a5
@ -124,6 +124,11 @@ public:
|
||||
return x;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
inline void ReadOwnedPtr(T*& Ptr) {
|
||||
Ptr = ReadOwnedPtr<T>();
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
void ReadPtr(T*& PtrRef) {
|
||||
ReadUIntPtr(reinterpret_cast<uintptr_t&>(PtrRef));
|
||||
|
Loading…
Reference in New Issue
Block a user