Author: lattner
Date: Sat Oct 11 19:23:07 2008
New Revision: 57389

URL: http://llvm.org/viewvc/llvm-project?rev=57389&view=rev
Log:
improve a comment.

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

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

==============================================================================
--- cfe/trunk/lib/Lex/Lexer.cpp (original)
+++ cfe/trunk/lib/Lex/Lexer.cpp Sat Oct 11 19:23:07 2008
@@ -813,7 +813,8 @@
   }
   
   // Otherwise, eat the \n character.  We don't care if this is a \n\r or
-  // \r\n sequence.
+  // \r\n sequence.  This is an efficiency hack (because we know the \n can't
+  // contribute to another token), it isn't needed for correctness.
   ++CurPtr;
     
   // The next returned token is at the start of the line.


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to