Add AST node, AST building, actions, and printing for 'for' stmts.
llvm-svn: 39113
diff --git a/clang/Sema/Sema.cpp b/clang/Sema/Sema.cpp
index 35102b9..78d3725 100644
--- a/clang/Sema/Sema.cpp
+++ b/clang/Sema/Sema.cpp
@@ -106,6 +106,13 @@
   return new IfStmt((Expr*)CondVal, (Stmt*)ThenVal, (Stmt*)ElseVal);
 }
 
+Action::StmtResult 
+ASTBuilder::ParseForStmt(SourceLocation ForLoc, SourceLocation LParenLoc, 
+                         StmtTy *First, ExprTy *Second, ExprTy *Third,
+                         SourceLocation RParenLoc, StmtTy *Body) {
+  return new ForStmt((Stmt*)First, (Expr*)Second, (Expr*)Third, (Stmt*)Body);
+}
+
 Action::StmtResult
 ASTBuilder::ParseReturnStmt(SourceLocation ReturnLoc,
                             ExprTy *RetValExp) {