[cfe-commits] r38615 - in /cfe/cfe/trunk: Lex/Lexer.cpp Lex/Preprocessor.cpp include/clang/Lex/Lexer.h
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:23:13 PDT 2007
Author: sabre
Date: Wed Jul 11 11:23:13 2007
New Revision: 38615
URL: http://llvm.org/viewvc/llvm-project?rev=38615&view=rev
Log:
Remove Lexer::BufferStart, an unneeded instance var.
Modified:
cfe/cfe/trunk/Lex/Lexer.cpp
cfe/cfe/trunk/Lex/Preprocessor.cpp
cfe/cfe/trunk/include/clang/Lex/Lexer.h
Modified: cfe/cfe/trunk/Lex/Lexer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Lex/Lexer.cpp?rev=38615&r1=38614&r2=38615&view=diff
==============================================================================
--- cfe/cfe/trunk/Lex/Lexer.cpp (original)
+++ cfe/cfe/trunk/Lex/Lexer.cpp Wed Jul 11 11:23:13 2007
@@ -40,7 +40,6 @@
Lexer::Lexer(const SourceBuffer *File, unsigned fileid, Preprocessor &pp,
const char *BufStart, const char *BufEnd)
: BufferPtr(BufStart ? BufStart : File->getBufferStart()),
- BufferStart(BufferPtr),
BufferEnd(BufEnd ? BufEnd : File->getBufferEnd()),
InputFile(File), CurFileID(fileid), PP(pp), Features(PP.getLangOptions()) {
Is_PragmaLexer = false;
Modified: cfe/cfe/trunk/Lex/Preprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Lex/Preprocessor.cpp?rev=38615&r1=38614&r2=38615&view=diff
==============================================================================
--- cfe/cfe/trunk/Lex/Preprocessor.cpp (original)
+++ cfe/cfe/trunk/Lex/Preprocessor.cpp Wed Jul 11 11:23:13 2007
@@ -420,7 +420,7 @@
SourceMgr.getFileEntryForFileID(CurLexer->getCurFileID()))
FileType = getFileInfo(FE).DirInfo;
- FileChangeHandler(CurLexer->getSourceLocation(CurLexer->BufferStart),
+ FileChangeHandler(SourceLocation(CurLexer->getCurFileID(), 0),
EnterFile, FileType);
}
}
Modified: cfe/cfe/trunk/include/clang/Lex/Lexer.h
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/include/clang/Lex/Lexer.h?rev=38615&r1=38614&r2=38615&view=diff
==============================================================================
--- cfe/cfe/trunk/include/clang/Lex/Lexer.h (original)
+++ cfe/cfe/trunk/include/clang/Lex/Lexer.h Wed Jul 11 11:23:13 2007
@@ -52,7 +52,6 @@
/// on the specified Preprocessor object to handle preprocessor directives, etc.
class Lexer {
const char *BufferPtr; // Current pointer into the buffer.
- const char * const BufferStart;// Start of the buffer.
const char * const BufferEnd; // End of the buffer.
const SourceBuffer *InputFile; // The file we are reading from.
unsigned CurFileID; // FileID for the current input file.
More information about the cfe-commits
mailing list