diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-08-12 12:31:25 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-08-12 12:31:25 +0000 |
commit | f573084db5807f6003282bdf53ca9d58bab1ddc4 (patch) | |
tree | e99e27a4b7f0abb3ed7fdbf2fad4accbbce45e01 /include/clang/Basic/IdentifierTable.h | |
parent | ef3dce817d43faadbf21ce9102d33a9d84b02e09 (diff) |
Add a comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110913 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/IdentifierTable.h')
-rw-r--r-- | include/clang/Basic/IdentifierTable.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/clang/Basic/IdentifierTable.h b/include/clang/Basic/IdentifierTable.h index cbc2d01202..fa1b149e39 100644 --- a/include/clang/Basic/IdentifierTable.h +++ b/include/clang/Basic/IdentifierTable.h @@ -141,7 +141,11 @@ public: bool hasRevertedTokenIDToIdentifier() const { return RevertedTokenID; } /// \brief Revert TokenID to tok::identifier; used for GNU libstdc++ 4.2 - /// compatibility. + /// compatibility. + /// + /// TokenID is normally read-only but there are 2 instances where we revert it + /// to tok::identifier for libstdc++ 4.2. Keep track of when this happens + /// using this method so we can inform PCH about it. void RevertTokenIDToIdentifier() { assert(TokenID != tok::identifier && "Already at tok::identifier"); TokenID = tok::identifier; |