[cfe-commits] r62313 - /cfe/trunk/lib/Lex/Preprocessor.cpp

Chris Lattner sabre at nondot.org
Thu Jan 15 23:04:11 PST 2009


Author: lattner
Date: Fri Jan 16 01:04:11 2009
New Revision: 62313

URL: http://llvm.org/viewvc/llvm-project?rev=62313&view=rev
Log:
remove obsolete comment which happened to go over 80 cols.

Modified:
    cfe/trunk/lib/Lex/Preprocessor.cpp

Modified: cfe/trunk/lib/Lex/Preprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Preprocessor.cpp?rev=62313&r1=62312&r2=62313&view=diff

==============================================================================
--- cfe/trunk/lib/Lex/Preprocessor.cpp (original)
+++ cfe/trunk/lib/Lex/Preprocessor.cpp Fri Jan 16 01:04:11 2009
@@ -254,15 +254,8 @@
     unsigned Len;
     
     if (CurPTHLexer) {
-      // We perform the const_cast<> here because we will only have a PTHLexer 
-      // when grabbing a stream of tokens from the PTH file (and thus the
-      // Preprocessor state is allowed to change).  The PTHLexer can assume we are
-      // getting token spellings in the order of tokens, and thus can update
-      // its internal state so that it can quickly fetch spellings from the PTH
-      // file.
       Len = CurPTHLexer.get()->getSpelling(Tok.getLocation(), Buffer);      
-    }
-    else {
+    } else {
       SourceLocation SLoc = SourceMgr.getSpellingLoc(Tok.getLocation());
       unsigned FID = SourceMgr.getCanonicalFileID(SLoc);
       unsigned FPos = SourceMgr.getFullFilePos(SLoc);      





More information about the cfe-commits mailing list