aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/Parser.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-08-10 22:28:13 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-08-10 22:28:13 +0000
commite6b3fea007e25842d6523043b17f7dde8c4d0107 (patch)
tree2a1fb06d4ef5886e2b716d2b81d00ffbc46684e4 /lib/Parse/Parser.cpp
parentb6d2bea04801cb66263de2f3fe99ef8e1dcd9f53 (diff)
Removed an unused function I added a while back.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r--lib/Parse/Parser.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp
index 79b3daf38b..3725e2b845 100644
--- a/lib/Parse/Parser.cpp
+++ b/lib/Parse/Parser.cpp
@@ -808,27 +808,6 @@ bool Parser::isStartOfFunctionDefinition(const ParsingDeclarator &Declarator) {
Tok.is(tok::kw_try); // X() try { ... }
}
-/// \brief Determine whether the current token, if it occurs after a
-/// a function declarator, indicates the start of a function definition
-/// inside an objective-C class implementation and thus can be delay parsed.
-bool Parser::isStartOfDelayParsedFunctionDefinition(
- const ParsingDeclarator &Declarator) {
- if (!CurParsedObjCImpl ||
- !Declarator.isFunctionDeclarator())
- return false;
- if (Tok.is(tok::l_brace)) // int X() {}
- return true;
-
- // Handle K&R C argument lists: int X(f) int f; {}
- if (!getLangOpts().CPlusPlus &&
- Declarator.getFunctionTypeInfo().isKNRPrototype())
- return isDeclarationSpecifier();
-
- return getLangOpts().CPlusPlus &&
- (Tok.is(tok::colon) || // X() : Base() {} (used for ctors)
- Tok.is(tok::kw_try)); // X() try { ... }
-}
-
/// ParseDeclarationOrFunctionDefinition - Parse either a function-definition or
/// a declaration. We can't tell which we have until we read up to the
/// compound-statement in function-definition. TemplateParams, if