[llvm-commits] [llvm] r49169 - /llvm/trunk/include/llvm/Bitcode/Serialization.h
Ted Kremenek
kremenek at apple.com
Thu Apr 3 09:44:37 PDT 2008
Author: kremenek
Date: Thu Apr 3 11:44:37 2008
New Revision: 49169
URL: http://llvm.org/viewvc/llvm-project?rev=49169&view=rev
Log:
Add member template version of SerializeTrait<T>::Create that also accepts
an optional argument for us by T's Create method.
Modified:
llvm/trunk/include/llvm/Bitcode/Serialization.h
Modified: llvm/trunk/include/llvm/Bitcode/Serialization.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/Serialization.h?rev=49169&r1=49168&r2=49169&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Bitcode/Serialization.h (original)
+++ llvm/trunk/include/llvm/Bitcode/Serialization.h Thu Apr 3 11:44:37 2008
@@ -38,6 +38,11 @@
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)\
More information about the llvm-commits
mailing list