From 662e8b5647adbb1bc9eeceece7b64600cfa87471 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 14 Aug 2008 22:04:54 +0000 Subject: Change Parser & Sema to use interned "super" for comparions. - Added as private members for each because it is not clear where to put the common definition. Perhaps the IdentifierInfos all of these "pseudo-keywords" should be collected into one place (this would KnownFunctionIDs and Objective-C property IDs, for example). Remove Token::isNamedIdentifier. - There isn't a good reason to use strcmp when we have interned strings, and there isn't a good reason to encourage clients to do so. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54794 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Lex/Lexer.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/Lex/Lexer.cpp') diff --git a/lib/Lex/Lexer.cpp b/lib/Lex/Lexer.cpp index 4fbbe3cc46..8bce589f17 100644 --- a/lib/Lex/Lexer.cpp +++ b/lib/Lex/Lexer.cpp @@ -51,12 +51,6 @@ tok::ObjCKeywordKind Token::getObjCKeywordID() const { return specId ? specId->getObjCKeywordID() : tok::objc_not_keyword; } -/// isNamedIdentifier - Return true if this token is a ppidentifier with the -/// specified name. For example, tok.isNamedIdentifier("this"). -bool Token::isNamedIdentifier(const char *Name) const { - return IdentInfo && !strcmp(IdentInfo->getName(), Name); -} - //===----------------------------------------------------------------------===// // Lexer Class Implementation -- cgit v1.2.3-70-g09d2