aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/Lexer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-17 03:48:08 +0000
committerChris Lattner <sabre@nondot.org>2009-01-17 03:48:08 +0000
commitc6fe32a91c7372caf09152ee31a24c4b5d24deed (patch)
tree89c7b9a3db4994a83b04bfef9f08bfc108a58c71 /lib/Lex/Lexer.cpp
parent5bdf3a81eb53ed9ca39df6e6622ee41b81425377 (diff)
Instead of iterating over FileID's, have PTH generation iterate over the
content cache directly. Content cache has a 1-1 mapping with fileentries, whereas multiple FileIDs can be the same FileEntry. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62401 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Lexer.cpp')
-rw-r--r--lib/Lex/Lexer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Lex/Lexer.cpp b/lib/Lex/Lexer.cpp
index fa29d0a38e..5a14c1356a 100644
--- a/lib/Lex/Lexer.cpp
+++ b/lib/Lex/Lexer.cpp
@@ -112,8 +112,7 @@ Lexer::Lexer(SourceLocation fileloc, Preprocessor &pp,
Lexer::Lexer(SourceLocation fileloc, const LangOptions &features,
const char *BufStart, const char *BufEnd,
const llvm::MemoryBuffer *FromFile)
- : PreprocessorLexer(), FileLoc(fileloc),
- Features(features) {
+ : FileLoc(fileloc), Features(features) {
Is_PragmaLexer = false;
InitCharacterInfo();