[cfe-commits] r57394 - /cfe/trunk/lib/Lex/Lexer.cpp
Chris Lattner
sabre at nondot.org
Sat Oct 11 18:23:32 PDT 2008
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;
More information about the cfe-commits
mailing list