[cfe-commits] r43342 - /cfe/trunk/include/clang/AST/Stmt.h
Chris Lattner
clattner at apple.com
Thu Oct 25 09:38:49 PDT 2007
> ======================================================================
> ========
> --- cfe/trunk/include/clang/AST/Stmt.h (original)
> +++ cfe/trunk/include/clang/AST/Stmt.h Thu Oct 25 10:39:09 2007
> @@ -18,6 +18,7 @@
> #include "clang/AST/StmtIterator.h"
> #include "llvm/ADT/SmallVector.h"
> #include "llvm/ADT/iterator"
> +#include "llvm/Bitcode/Serialization.h"
> #include <iosfwd>
You don't need this #include:
Just use:
namespace llvm {
class Serializer;
class Deserializer;
template class SerializeTrait<typename x>;
}
> +namespace llvm {
> +
> +template<> struct SerializeTrait<clang::Stmt> {
For VC++ compatibility, should SerializeTrait standardize on 'class'
instead of struct?
-Chris
> + static void Emit(Serializer& S, clang::Stmt& stmt);
> + static clang::Stmt* Materialize(Deserializer& D);
> +};
> +
> +} // end namespace llvm
> +
> #endif
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list