diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2007-11-09 22:27:59 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2007-11-09 22:27:59 +0000 |
commit | 360300ca2ee298d585d29baf006519507d968812 (patch) | |
tree | b94824afb408a9c8c22de5baff3749ef9e6e9538 /Parse/Parser.cpp | |
parent | 7964c9f61e77b2cdf6c5c08c97ee2ea0c8360aec (diff) |
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
Diffstat (limited to 'Parse/Parser.cpp')
-rw-r--r-- | Parse/Parser.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Parse/Parser.cpp b/Parse/Parser.cpp index 59a077d21b..cfa92e1020 100644 --- a/Parse/Parser.cpp +++ b/Parse/Parser.cpp @@ -465,7 +465,9 @@ Parser::DeclTy *Parser::ParseFunctionDefinition(Declarator &D) { 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 @@ Parser::DeclTy *Parser::ObjcParseFunctionDefinition(DeclTy *D) { 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); } |