summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-08-12 12:31:25 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-08-12 12:31:25 +0000
commitcd404f1def6a09c75d298ae351256975b55994f9 (patch)
treef4b778dd027b77d280273e655b3f8cc08686cbcb
parent8de74e9c8105251bab28aefbffa6bcbe808f7c61 (diff)
downloadbcm5719-llvm-cd404f1def6a09c75d298ae351256975b55994f9.tar.gz
bcm5719-llvm-cd404f1def6a09c75d298ae351256975b55994f9.zip
Add a comment.
llvm-svn: 110913
-rw-r--r--clang/include/clang/Basic/IdentifierTable.h6
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;
OpenPOWER on IntegriCloud