[cfe-commits] r43822 - in /cfe/trunk: AST/StmtSerialization.cpp include/clang/AST/Stmt.h
Ted Kremenek
kremenek at apple.com
Wed Nov 7 09:05:10 PST 2007
Author: kremenek
Date: Wed Nov 7 11:05:07 2007
New Revision: 43822
URL: http://llvm.org/viewvc/llvm-project?rev=43822&view=rev
Log:
Implemented serialization of ContinueStmt.
Modified:
cfe/trunk/AST/StmtSerialization.cpp
cfe/trunk/include/clang/AST/Stmt.h
Modified: cfe/trunk/AST/StmtSerialization.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/StmtSerialization.cpp?rev=43822&r1=43821&r2=43822&view=diff
==============================================================================
--- cfe/trunk/AST/StmtSerialization.cpp (original)
+++ cfe/trunk/AST/StmtSerialization.cpp Wed Nov 7 11:05:07 2007
@@ -43,6 +43,9 @@
case CompoundStmtClass:
return CompoundStmt::directMaterialize(D);
+ case ContinueStmtClass:
+ return ContinueStmt::directMaterialize(D);
+
case DeclRefExprClass:
return DeclRefExpr::directMaterialize(D);
@@ -160,6 +163,15 @@
return stmt;
}
+void ContinueStmt::directEmit(llvm::Serializer& S) const {
+ S.Emit(ContinueLoc);
+}
+
+ContinueStmt* ContinueStmt::directMaterialize(llvm::Deserializer& D) {
+ SourceLocation Loc = SourceLocation::ReadVal(D);
+ return new ContinueStmt(Loc);
+}
+
void DeclStmt::directEmit(llvm::Serializer& S) const {
// FIXME: special handling for struct decls.
S.EmitOwnedPtr(getDecl());
Modified: cfe/trunk/include/clang/AST/Stmt.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Stmt.h?rev=43822&r1=43821&r2=43822&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Stmt.h (original)
+++ cfe/trunk/include/clang/AST/Stmt.h Wed Nov 7 11:05:07 2007
@@ -644,6 +644,9 @@
// Iterators
virtual child_iterator child_begin();
virtual child_iterator child_end();
+
+ virtual void directEmit(llvm::Serializer& S) const;
+ static ContinueStmt* directMaterialize(llvm::Deserializer& D);
};
/// BreakStmt - This represents a break.
More information about the cfe-commits
mailing list