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
This commit is contained in:
Fariborz Jahanian 2012-08-10 22:28:13 +00:00
Родитель b6d2bea048
Коммит e6b3fea007
2 изменённых файлов: 0 добавлений и 22 удалений

Просмотреть файл

@ -1057,7 +1057,6 @@ private:
ParsingDeclSpec *DS = 0); ParsingDeclSpec *DS = 0);
bool isDeclarationAfterDeclarator(); bool isDeclarationAfterDeclarator();
bool isStartOfFunctionDefinition(const ParsingDeclarator &Declarator); bool isStartOfFunctionDefinition(const ParsingDeclarator &Declarator);
bool isStartOfDelayParsedFunctionDefinition(const ParsingDeclarator &Declarator);
DeclGroupPtrTy ParseDeclarationOrFunctionDefinition( DeclGroupPtrTy ParseDeclarationOrFunctionDefinition(
ParsedAttributesWithRange &attrs, ParsedAttributesWithRange &attrs,
ParsingDeclSpec *DS = 0, ParsingDeclSpec *DS = 0,

Просмотреть файл

@ -808,27 +808,6 @@ bool Parser::isStartOfFunctionDefinition(const ParsingDeclarator &Declarator) {
Tok.is(tok::kw_try); // X() try { ... } 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 /// ParseDeclarationOrFunctionDefinition - Parse either a function-definition or
/// a declaration. We can't tell which we have until we read up to the /// a declaration. We can't tell which we have until we read up to the
/// compound-statement in function-definition. TemplateParams, if /// compound-statement in function-definition. TemplateParams, if