diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-08-14 22:04:54 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-14 22:04:54 +0000 |
commit | 12c9ddced12912e4b4e4f7fba9bb424e2685cc98 (patch) | |
tree | eb16803140f1eec4cc25dd2228d26460233af086 /clang/lib/Lex/Lexer.cpp | |
parent | c44423853a31b0af89bfd698595d5c2268979440 (diff) | |
download | bcm5719-llvm-12c9ddced12912e4b4e4f7fba9bb424e2685cc98.tar.gz bcm5719-llvm-12c9ddced12912e4b4e4f7fba9bb424e2685cc98.zip |
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.
llvm-svn: 54794
Diffstat (limited to 'clang/lib/Lex/Lexer.cpp')
-rw-r--r-- | clang/lib/Lex/Lexer.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp index 4fbbe3cc464..8bce589f177 100644 --- a/clang/lib/Lex/Lexer.cpp +++ b/clang/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 |