[cfe-commits] r39112 - /cfe/cfe/trunk/Parse/ParseExpr.cpp

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:27:37 PDT 2007


Author: sabre
Date: Wed Jul 11 11:27:37 2007
New Revision: 39112

URL: http://llvm.org/viewvc/llvm-project?rev=39112&view=rev
Log:
implement some todo's: invoke the actions module for identifiers leading
expressions in stmt contexts.

Modified:
    cfe/cfe/trunk/Parse/ParseExpr.cpp

Modified: cfe/cfe/trunk/Parse/ParseExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Parse/ParseExpr.cpp?rev=39112&r1=39111&r2=39112&view=diff

==============================================================================
--- cfe/cfe/trunk/Parse/ParseExpr.cpp (original)
+++ cfe/cfe/trunk/Parse/ParseExpr.cpp Wed Jul 11 11:27:37 2007
@@ -202,8 +202,9 @@
   // We know that 'Tok' must correspond to this production:
   //   primary-expression: identifier
   
-  // TODO: Pass 'Tok' to the action.
-  ExprResult Res = ExprResult(false);
+  // Let the actions module handle the identifier.
+  ExprResult Res = Actions.ParseSimplePrimaryExpr(Tok.getLocation(),
+                                                  Tok.getKind());
   
   // Because we have to parse an entire cast-expression before starting the
   // ParseRHSOfBinaryExpression method (which parses any trailing binops), we
@@ -231,8 +232,9 @@
   // We know that 'Tok' must correspond to this production:
   //   primary-expression: identifier
   
-  // TODO: Pass 'Tok' to the action.
-  ExprResult Res = ExprResult(false);
+  // Let the actions module handle the identifier.
+  ExprResult Res = Actions.ParseSimplePrimaryExpr(Tok.getLocation(),
+                                                  Tok.getKind());
   
   // Because we have to parse an entire cast-expression before starting the
   // ParseRHSOfBinaryExpression method (which parses any trailing binops), we





More information about the cfe-commits mailing list