mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Add member template version of SerializeTrait<T>::Create that also accepts
an optional argument for us by T's Create method. llvm-svn: 49169
This commit is contained in:
parent
e86caa45cf
commit
2184f6cc1d
@ -38,6 +38,11 @@ struct SerializeTrait {
|
||||
static inline void Emit(Serializer& S, const T& X) { X.Emit(S); }
|
||||
static inline void Read(Deserializer& D, T& X) { X.Read(D); }
|
||||
static inline T* Create(Deserializer& D) { return T::Create(D); }
|
||||
|
||||
template <typename Arg1>
|
||||
static inline T* Create(Deserializer& D, Arg1& arg1) {
|
||||
return T::Create(D, arg1);
|
||||
}
|
||||
};
|
||||
|
||||
#define SERIALIZE_INT_TRAIT(TYPE)\
|
||||
|
Loading…
Reference in New Issue
Block a user