Some code clean up in the form of name changes for functions which
process method definitions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43967 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Parse/Parser.cpp b/Parse/Parser.cpp
index 59a077d..cfa92e1 100644
--- a/Parse/Parser.cpp
+++ b/Parse/Parser.cpp
@@ -465,7 +465,9 @@
return ParseFunctionStatementBody(Res, BraceLoc, BraceLoc);
}
-Parser::DeclTy *Parser::ObjcParseFunctionDefinition(DeclTy *D) {
+/// ObjcParseMethodDefinition - This routine parses a method definition and
+/// returns its AST.
+Parser::DeclTy *Parser::ObjcParseMethodDefinition(DeclTy *D) {
// We should have an opening brace now.
if (Tok.isNot(tok::l_brace)) {
Diag(Tok, diag::err_expected_fn_body);
@@ -480,12 +482,12 @@
SourceLocation BraceLoc = Tok.getLocation();
- // Enter a scope for the function body.
+ // Enter a scope for the method body.
EnterScope(Scope::FnScope|Scope::DeclScope);
- // Tell the actions module that we have entered a function definition with the
- // specified Declarator for the function.
- DeclTy *Res = Actions.ObjcActOnStartOfFunctionDef(CurScope, D);
+ // Tell the actions module that we have entered a method definition with the
+ // specified Declarator for the method.
+ DeclTy *Res = Actions.ObjcActOnStartOfMethodDef(CurScope, D);
return ParseFunctionStatementBody(Res, BraceLoc, BraceLoc);
}