diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-12 01:23:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-12 01:23:27 +0000 |
commit | 6b0c5ad0965ef13e14ee79aaeedec24a5d3ee3e1 (patch) | |
tree | e3e4dffa5c6ddd4456ff780a72f0e8069b860a18 /clang/lib/Lex/Lexer.cpp | |
parent | 50c9050037a1388072f8efaed98e1dc8050bedb4 (diff) | |
download | bcm5719-llvm-6b0c5ad0965ef13e14ee79aaeedec24a5d3ee3e1.tar.gz bcm5719-llvm-6b0c5ad0965ef13e14ee79aaeedec24a5d3ee3e1.zip |
add a comment.
llvm-svn: 57394
Diffstat (limited to 'clang/lib/Lex/Lexer.cpp')
-rw-r--r-- | clang/lib/Lex/Lexer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp index e930f3def2e..63bf58a12c8 100644 --- a/clang/lib/Lex/Lexer.cpp +++ b/clang/lib/Lex/Lexer.cpp @@ -113,6 +113,8 @@ Lexer::Lexer(SourceLocation fileloc, const LangOptions &features, 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; |