Author: lattner
Date: Sat Oct 11 20:23:27 2008
New Revision: 57394
URL: http://llvm.org/viewvc/llvm-project?rev=57394&view=rev
Log:
add 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=57394&r1=57393&r2=57394&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/Lexer.cpp (original)
+++ cfe/trunk/lib/Lex/Lexer.cpp Sat Oct 11 20:23:27 2008
@@ -113,6 +113,8 @@
Is_PragmaLexer = false;
InitCharacterInfo();
+ // If a MemoryBuffer was specified, use its start as BufferStart. This
affects
+ // the source location objects produced by this lexer.
BufferStart = FromFile ? FromFile->getBufferStart() : BufStart;
BufferPtr = BufStart;
BufferEnd = BufEnd;
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits