[cfe-commits] r110913 - /cfe/trunk/include/clang/Basic/IdentifierTable.h
Argyrios Kyrtzidis
akyrtzi at gmail.com
Thu Aug 12 05:31:25 PDT 2010
Author: akirtzidis
Date: Thu Aug 12 07:31:25 2010
New Revision: 110913
URL: http://llvm.org/viewvc/llvm-project?rev=110913&view=rev
Log:
Add a comment.
Modified:
cfe/trunk/include/clang/Basic/IdentifierTable.h
Modified: cfe/trunk/include/clang/Basic/IdentifierTable.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/IdentifierTable.h?rev=110913&r1=110912&r2=110913&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/IdentifierTable.h (original)
+++ cfe/trunk/include/clang/Basic/IdentifierTable.h Thu Aug 12 07:31:25 2010
@@ -141,7 +141,11 @@
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;
More information about the cfe-commits
mailing list