diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-11-19 21:57:25 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-11-19 21:57:25 +0000 |
commit | 45245217bcf82bccad31d4eb63e2dc827c5dca35 (patch) | |
tree | 23707291ed965503dd47ff02f9d41a43fa3610ef /clang/lib/Lex/PTHLexer.cpp | |
parent | 78fb6214f39f2bec2468af7997dc0e43e0ef2188 (diff) | |
download | bcm5719-llvm-45245217bcf82bccad31d4eb63e2dc827c5dca35.tar.gz bcm5719-llvm-45245217bcf82bccad31d4eb63e2dc827c5dca35.zip |
- Move static function IsNonPragmaNonMacroLexer into Preprocessor.h.
- Add variants of IsNonPragmaNonMacroLexer to accept an IncludeMacroStack entry
(simplifies some uses).
- Use IsNonPragmaNonMacroLexer in Preprocessor::LookupFile.
- Add 'FileID' to PreprocessorLexer, and have Preprocessor query this fileid
when looking up the FileEntry for a file
Performance testing of -Eonly on Cocoa.h shows no performance regression because
of this patch.
llvm-svn: 59666
Diffstat (limited to 'clang/lib/Lex/PTHLexer.cpp')
-rw-r--r-- | clang/lib/Lex/PTHLexer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/PTHLexer.cpp b/clang/lib/Lex/PTHLexer.cpp index 8062102e6cc..d22285cae5c 100644 --- a/clang/lib/Lex/PTHLexer.cpp +++ b/clang/lib/Lex/PTHLexer.cpp @@ -18,8 +18,8 @@ using namespace clang; PTHLexer::PTHLexer(Preprocessor& pp, SourceLocation fileloc, const Token *TokArray, unsigned NumToks) - : PreprocessorLexer(&pp), FileLoc(fileloc), Tokens(TokArray), - NumTokens(NumToks), CurToken(0) { + : PreprocessorLexer(&pp, fileloc), FileLoc(fileloc), + Tokens(TokArray), NumTokens(NumToks), CurToken(0) { assert (Tokens[NumTokens-1].is(tok::eof)); --NumTokens; |