[cfe-commits] r39125 - /cfe/cfe/trunk/Parse/Parser.cpp
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:27:47 PDT 2007
Author: sabre
Date: Wed Jul 11 11:27:47 2007
New Revision: 39125
URL: http://llvm.org/viewvc/llvm-project?rev=39125&view=rev
Log:
need to add scope for arguments, but now is not the right time.
Modified:
cfe/cfe/trunk/Parse/Parser.cpp
Modified: cfe/cfe/trunk/Parse/Parser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Parse/Parser.cpp?rev=39125&r1=39124&r2=39125&view=diff
==============================================================================
--- cfe/cfe/trunk/Parse/Parser.cpp (original)
+++ cfe/cfe/trunk/Parse/Parser.cpp Wed Jul 11 11:27:47 2007
@@ -379,6 +379,11 @@
const DeclaratorTypeInfo &FnTypeInfo = D.getTypeObject(0);
assert(FnTypeInfo.Kind == DeclaratorTypeInfo::Function &&
"This isn't a function declarator!");
+
+ // FIXME: Enter a scope for the arguments.
+ //EnterScope();
+
+
// If this declaration was formed with a K&R-style identifier list for the
// arguments, parse declarations for all of the args next.
@@ -412,6 +417,9 @@
StmtResult FnBody = ParseCompoundStatement();
if (FnBody.isInvalid) return 0;
+ // FIXME: Leave the argument scope.
+ // ExitScope();
+
// TODO: Pass argument information.
return Actions.ParseFunctionDefinition(CurScope, D, FnBody.Val);
}
More information about the cfe-commits
mailing list