diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-08-08 23:41:08 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-08-08 23:41:08 +0000 |
commit | 8c6cb462946b8be19167fad7ff21d4f9fbaebfef (patch) | |
tree | 5ca654c9523aac745873e0334e68f172fb89fac4 /lib/Parse/ParseObjc.cpp | |
parent | 817a8866b900458d88d13d8ba10829eaef493040 (diff) |
objective-C: refactor/simplify parsing of delayed
method/c-funcs defined in objc class implementation.
No intended functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161540 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseObjc.cpp')
-rw-r--r-- | lib/Parse/ParseObjc.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Parse/ParseObjc.cpp b/lib/Parse/ParseObjc.cpp index 9d21c42b44..e401983a7e 100644 --- a/lib/Parse/ParseObjc.cpp +++ b/lib/Parse/ParseObjc.cpp @@ -2880,7 +2880,10 @@ void Parser::ParseLexedObjCMethodDefs(LexedMethod &LM, bool parseMethod) { // Tell the actions module that we have entered a method or c-function definition // with the specified Declarator for the method/function. - Actions.ActOnStartOfObjCMethodOrCFunctionDef(getCurScope(), MCDecl, parseMethod); + if (parseMethod) + Actions.ActOnStartOfObjCMethodDef(getCurScope(), MCDecl); + else + Actions.ActOnStartOfFunctionDef(getCurScope(), MCDecl); if (SkipFunctionBodies && trySkippingFunctionBody()) { BodyScope.Exit(); |