diff options
author | Chris Lattner <sabre@nondot.org> | 2007-10-07 08:47:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-10-07 08:47:24 +0000 |
commit | dbf388b54bb1688ee4470c61235494cbc34b8f3c (patch) | |
tree | 94ea7bc9a02affd8f64008f62ae9c59f95c79c5d /Lex/IdentifierTable.cpp | |
parent | cc1a875f94630e58d24a55577ffbf0e89b7da8c7 (diff) |
implement the Token class in the Lexer.cpp file instead of IdentifierInfo.cpp
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Lex/IdentifierTable.cpp')
-rw-r--r-- | Lex/IdentifierTable.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/Lex/IdentifierTable.cpp b/Lex/IdentifierTable.cpp index f0baa15516..c4c1ee358d 100644 --- a/Lex/IdentifierTable.cpp +++ b/Lex/IdentifierTable.cpp @@ -19,25 +19,6 @@ using namespace clang; //===----------------------------------------------------------------------===// -// Token Implementation -//===----------------------------------------------------------------------===// - -// FIXME: Move this elsewhere! -#include "clang/Lex/Token.h" - -/// isObjCAtKeyword - Return true if we have an ObjC keyword identifier. -bool Token::isObjCAtKeyword(tok::ObjCKeywordKind objcKey) const { - return getKind() == tok::identifier && - getIdentifierInfo()->getObjCKeywordID() == objcKey; -} - -/// getObjCKeywordID - Return the ObjC keyword kind. -tok::ObjCKeywordKind Token::getObjCKeywordID() const { - IdentifierInfo *specId = getIdentifierInfo(); - return specId ? specId->getObjCKeywordID() : tok::objc_not_keyword; -} - -//===----------------------------------------------------------------------===// // IdentifierInfo Implementation //===----------------------------------------------------------------------===// |