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 | cd404f1def6a09c75d298ae351256975b55994f9 (patch) | |
| tree | f4b778dd027b77d280273e655b3f8cc08686cbcb | |
| parent | 8de74e9c8105251bab28aefbffa6bcbe808f7c61 (diff) | |
| download | bcm5719-llvm-cd404f1def6a09c75d298ae351256975b55994f9.tar.gz bcm5719-llvm-cd404f1def6a09c75d298ae351256975b55994f9.zip | |
Add a comment.
llvm-svn: 110913
| -rw-r--r-- | clang/include/clang/Basic/IdentifierTable.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/include/clang/Basic/IdentifierTable.h b/clang/include/clang/Basic/IdentifierTable.h index cbc2d01202d..fa1b149e39b 100644 --- a/clang/include/clang/Basic/IdentifierTable.h +++ b/clang/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; |

