[cfe-commits] r38670 - /cfe/cfe/trunk/Lex/Pragma.cpp

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:23:40 PDT 2007


Author: sabre
Date: Wed Jul 11 11:23:40 2007
New Revision: 38670

URL: http://llvm.org/viewvc/llvm-project?rev=38670&view=rev
Log:
add a comment explaining why this is written funny

Modified:
    cfe/cfe/trunk/Lex/Pragma.cpp

Modified: cfe/cfe/trunk/Lex/Pragma.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Lex/Pragma.cpp?rev=38670&r1=38669&r2=38670&view=diff

==============================================================================
--- cfe/cfe/trunk/Lex/Pragma.cpp (original)
+++ cfe/cfe/trunk/Lex/Pragma.cpp Wed Jul 11 11:23:40 2007
@@ -204,7 +204,8 @@
       return;
     }
     
-    // Look up the identifier info for the token.
+    // Look up the identifier info for the token.  Note that this can't use
+    // Tok.getIdentifierInfo() directly because we disabled identifier lookup.
     std::string TokStr = getSpelling(Tok);
     IdentifierInfo *II =getIdentifierInfo(&TokStr[0], &TokStr[0]+TokStr.size());
     





More information about the cfe-commits mailing list