aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Lex/IdentifierTable.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-10-07 07:52:34 +0000
committerChris Lattner <sabre@nondot.org>2007-10-07 07:52:34 +0000
commit387b98d37e08f7aa9ddf23e067e1d27e39ce16f3 (patch)
treeda05f5e30434c10979b2e785ca56c29d8789ce70 /include/clang/Lex/IdentifierTable.h
parent4365a7e46822700357a272d839ee2656d9603d5a (diff)
Remove the PPID bitfield from IdentifierInfo, shrinking it by a word
(because all bitfields now fit in 32 bits). This shrinks the identifier table for carbon.h from 1634428 to 1451424 bytes (12%) and has no impact on compile time. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42723 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/IdentifierTable.h')
-rw-r--r--include/clang/Lex/IdentifierTable.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/clang/Lex/IdentifierTable.h b/include/clang/Lex/IdentifierTable.h
index ed9f971f45..d987285df4 100644
--- a/include/clang/Lex/IdentifierTable.h
+++ b/include/clang/Lex/IdentifierTable.h
@@ -39,7 +39,6 @@ namespace clang {
class IdentifierInfo {
tok::TokenKind TokenID : 8; // Front-end token ID or tok::identifier.
unsigned BuiltinID : 9; // ID if this is a builtin (__builtin_inf).
- tok::PPKeywordKind PPID : 5; // ID for preprocessor command like #'ifdef'.
tok::ObjCKeywordKind ObjCID : 5; // ID for objc @ keyword like @'protocol'.
bool HasMacro : 1; // True if there is a #define for this.
bool IsExtension : 1; // True if identifier is a lang extension.
@@ -86,8 +85,7 @@ public:
/// getPPKeywordID - Return the preprocessor keyword ID for this identifier.
/// For example, define will return tok::pp_define.
- tok::PPKeywordKind getPPKeywordID() const { return PPID; }
- void setPPKeywordID(tok::PPKeywordKind ID) { PPID = ID; }
+ tok::PPKeywordKind getPPKeywordID() const;
/// getObjCKeywordID - Return the Objective-C keyword ID for the this
/// identifier. For example, 'class' will return tok::objc_class if ObjC is